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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
    • clear

      public Stream.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
    • getDefaultInstanceForType

      public Stream getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Stream build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Stream buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Stream.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Stream.Builder>
    • mergeFrom

      public Stream.Builder mergeFrom(Stream other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Stream.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Name of the resource.
       
      string name = 1;
      Specified by:
      getName in interface StreamOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the resource.
       
      string name = 1;
      Specified by:
      getNameBytes in interface StreamOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Stream.Builder setName(String value)
       Name of the resource.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Stream.Builder clearName()
       Name of the resource.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Stream.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasCreateTime in interface StreamOrBuilder
      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:
      getCreateTime in interface StreamOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Stream.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Stream.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Stream.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Stream.Builder 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:
      getCreateTimeOrBuilder in interface StreamOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface StreamOrBuilder
      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:
      getUpdateTime in interface StreamOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Stream.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Stream.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Stream.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Stream.Builder 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:
      getUpdateTimeOrBuilder in interface StreamOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: StreamOrBuilder
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface StreamOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface StreamOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface StreamOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface StreamOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface StreamOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface StreamOrBuilder
    • clearLabels

      public Stream.Builder clearLabels()
    • removeLabels

      public Stream.Builder removeLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Stream.Builder putLabels(String key, String value)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • putAllLabels

      public Stream.Builder putAllLabels(Map<String,String> values)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: StreamOrBuilder
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsCount in interface StreamOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      containsAnnotations in interface StreamOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface StreamOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsMap in interface StreamOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsOrDefault in interface StreamOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsOrThrow in interface StreamOrBuilder
    • clearAnnotations

      public Stream.Builder clearAnnotations()
    • removeAnnotations

      public Stream.Builder removeAnnotations(String key)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public Stream.Builder putAnnotations(String key, String value)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • putAllAnnotations

      public Stream.Builder putAllAnnotations(Map<String,String> values)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • getDisplayName

      public String getDisplayName()
       The display name for the stream resource.
       
      string display_name = 6;
      Specified by:
      getDisplayName in interface StreamOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name for the stream resource.
       
      string display_name = 6;
      Specified by:
      getDisplayNameBytes in interface StreamOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Stream.Builder setDisplayName(String value)
       The display name for the stream resource.
       
      string display_name = 6;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Stream.Builder clearDisplayName()
       The display name for the stream resource.
       
      string display_name = 6;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Stream.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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:
      getEnableHlsPlayback in interface StreamOrBuilder
      Returns:
      The enableHlsPlayback.
    • setEnableHlsPlayback

      public Stream.Builder setEnableHlsPlayback(boolean value)
       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

      public Stream.Builder clearEnableHlsPlayback()
       Whether to enable the HLS playback service on this stream.
       
      bool enable_hls_playback = 7;
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getMediaWarehouseAsset in interface StreamOrBuilder
      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:
      getMediaWarehouseAssetBytes in interface StreamOrBuilder
      Returns:
      The bytes for mediaWarehouseAsset.
    • setMediaWarehouseAsset

      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;
      Parameters:
      value - The mediaWarehouseAsset to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setMediaWarehouseAssetBytes

      public Stream.Builder setMediaWarehouseAssetBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for mediaWarehouseAsset to set.
      Returns:
      This builder for chaining.