Class AdStitchDetail.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdStitchDetail.Builder>
com.google.cloud.video.stitcher.v1.AdStitchDetail.Builder
All Implemented Interfaces:
AdStitchDetailOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdStitchDetail

public static final class AdStitchDetail.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdStitchDetail.Builder> implements AdStitchDetailOrBuilder
 Metadata for a stitched ad.
 
Protobuf type google.cloud.video.stitcher.v1.AdStitchDetail
  • 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<AdStitchDetail.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public AdStitchDetail.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<AdStitchDetail.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<AdStitchDetail.Builder>
    • getDefaultInstanceForType

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

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

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

      public AdStitchDetail.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<AdStitchDetail.Builder>
    • mergeFrom

      public AdStitchDetail.Builder mergeFrom(AdStitchDetail other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AdStitchDetail.Builder>
    • mergeFrom

      public AdStitchDetail.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<AdStitchDetail.Builder>
      Throws:
      IOException
    • getAdBreakId

      public String getAdBreakId()
       Required. The ad break ID of the processed ad.
       
      string ad_break_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAdBreakId in interface AdStitchDetailOrBuilder
      Returns:
      The adBreakId.
    • getAdBreakIdBytes

      public com.google.protobuf.ByteString getAdBreakIdBytes()
       Required. The ad break ID of the processed ad.
       
      string ad_break_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAdBreakIdBytes in interface AdStitchDetailOrBuilder
      Returns:
      The bytes for adBreakId.
    • setAdBreakId

      public AdStitchDetail.Builder setAdBreakId(String value)
       Required. The ad break ID of the processed ad.
       
      string ad_break_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The adBreakId to set.
      Returns:
      This builder for chaining.
    • clearAdBreakId

      public AdStitchDetail.Builder clearAdBreakId()
       Required. The ad break ID of the processed ad.
       
      string ad_break_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAdBreakIdBytes

      public AdStitchDetail.Builder setAdBreakIdBytes(com.google.protobuf.ByteString value)
       Required. The ad break ID of the processed ad.
       
      string ad_break_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for adBreakId to set.
      Returns:
      This builder for chaining.
    • getAdId

      public String getAdId()
       Required. The ad ID of the processed ad.
       
      string ad_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAdId in interface AdStitchDetailOrBuilder
      Returns:
      The adId.
    • getAdIdBytes

      public com.google.protobuf.ByteString getAdIdBytes()
       Required. The ad ID of the processed ad.
       
      string ad_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAdIdBytes in interface AdStitchDetailOrBuilder
      Returns:
      The bytes for adId.
    • setAdId

      public AdStitchDetail.Builder setAdId(String value)
       Required. The ad ID of the processed ad.
       
      string ad_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The adId to set.
      Returns:
      This builder for chaining.
    • clearAdId

      public AdStitchDetail.Builder clearAdId()
       Required. The ad ID of the processed ad.
       
      string ad_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAdIdBytes

      public AdStitchDetail.Builder setAdIdBytes(com.google.protobuf.ByteString value)
       Required. The ad ID of the processed ad.
       
      string ad_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for adId to set.
      Returns:
      This builder for chaining.
    • hasAdTimeOffset

      public boolean hasAdTimeOffset()
       Required. The time offset of the processed ad.
       
      .google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAdTimeOffset in interface AdStitchDetailOrBuilder
      Returns:
      Whether the adTimeOffset field is set.
    • getAdTimeOffset

      public com.google.protobuf.Duration getAdTimeOffset()
       Required. The time offset of the processed ad.
       
      .google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAdTimeOffset in interface AdStitchDetailOrBuilder
      Returns:
      The adTimeOffset.
    • setAdTimeOffset

      public AdStitchDetail.Builder setAdTimeOffset(com.google.protobuf.Duration value)
       Required. The time offset of the processed ad.
       
      .google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];
    • setAdTimeOffset

      public AdStitchDetail.Builder setAdTimeOffset(com.google.protobuf.Duration.Builder builderForValue)
       Required. The time offset of the processed ad.
       
      .google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeAdTimeOffset

      public AdStitchDetail.Builder mergeAdTimeOffset(com.google.protobuf.Duration value)
       Required. The time offset of the processed ad.
       
      .google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearAdTimeOffset

      public AdStitchDetail.Builder clearAdTimeOffset()
       Required. The time offset of the processed ad.
       
      .google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAdTimeOffsetBuilder

      public com.google.protobuf.Duration.Builder getAdTimeOffsetBuilder()
       Required. The time offset of the processed ad.
       
      .google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAdTimeOffsetOrBuilder

      public com.google.protobuf.DurationOrBuilder getAdTimeOffsetOrBuilder()
       Required. The time offset of the processed ad.
       
      .google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAdTimeOffsetOrBuilder in interface AdStitchDetailOrBuilder
    • getSkipReason

      public String getSkipReason()
       Optional. Indicates the reason why the ad has been skipped.
       
      string skip_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSkipReason in interface AdStitchDetailOrBuilder
      Returns:
      The skipReason.
    • getSkipReasonBytes

      public com.google.protobuf.ByteString getSkipReasonBytes()
       Optional. Indicates the reason why the ad has been skipped.
       
      string skip_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSkipReasonBytes in interface AdStitchDetailOrBuilder
      Returns:
      The bytes for skipReason.
    • setSkipReason

      public AdStitchDetail.Builder setSkipReason(String value)
       Optional. Indicates the reason why the ad has been skipped.
       
      string skip_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The skipReason to set.
      Returns:
      This builder for chaining.
    • clearSkipReason

      public AdStitchDetail.Builder clearSkipReason()
       Optional. Indicates the reason why the ad has been skipped.
       
      string skip_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSkipReasonBytes

      public AdStitchDetail.Builder setSkipReasonBytes(com.google.protobuf.ByteString value)
       Optional. Indicates the reason why the ad has been skipped.
       
      string skip_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for skipReason to set.
      Returns:
      This builder for chaining.
    • getMediaCount

      public int getMediaCount()
      Description copied from interface: AdStitchDetailOrBuilder
       Optional. The metadata of the chosen media file for the ad.
       
      map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMediaCount in interface AdStitchDetailOrBuilder
    • containsMedia

      public boolean containsMedia(String key)
       Optional. The metadata of the chosen media file for the ad.
       
      map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsMedia in interface AdStitchDetailOrBuilder
    • getMedia

      @Deprecated public Map<String,com.google.protobuf.Value> getMedia()
      Deprecated.
      Use getMediaMap() instead.
      Specified by:
      getMedia in interface AdStitchDetailOrBuilder
    • getMediaMap

      public Map<String,com.google.protobuf.Value> getMediaMap()
       Optional. The metadata of the chosen media file for the ad.
       
      map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMediaMap in interface AdStitchDetailOrBuilder
    • getMediaOrDefault

      public com.google.protobuf.Value getMediaOrDefault(String key, com.google.protobuf.Value defaultValue)
       Optional. The metadata of the chosen media file for the ad.
       
      map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMediaOrDefault in interface AdStitchDetailOrBuilder
    • getMediaOrThrow

      public com.google.protobuf.Value getMediaOrThrow(String key)
       Optional. The metadata of the chosen media file for the ad.
       
      map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMediaOrThrow in interface AdStitchDetailOrBuilder
    • clearMedia

      public AdStitchDetail.Builder clearMedia()
    • removeMedia

      public AdStitchDetail.Builder removeMedia(String key)
       Optional. The metadata of the chosen media file for the ad.
       
      map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableMedia

      @Deprecated public Map<String,com.google.protobuf.Value> getMutableMedia()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMedia

      public AdStitchDetail.Builder putMedia(String key, com.google.protobuf.Value value)
       Optional. The metadata of the chosen media file for the ad.
       
      map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllMedia

      public AdStitchDetail.Builder putAllMedia(Map<String,com.google.protobuf.Value> values)
       Optional. The metadata of the chosen media file for the ad.
       
      map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putMediaBuilderIfAbsent

      public com.google.protobuf.Value.Builder putMediaBuilderIfAbsent(String key)
       Optional. The metadata of the chosen media file for the ad.
       
      map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];