Class AdStitchDetail.Builder (0.46.0)

public static final class AdStitchDetail.Builder extends GeneratedMessageV3.Builder<AdStitchDetail.Builder> implements AdStitchDetailOrBuilder

Metadata for a stitched ad.

Protobuf type google.cloud.video.stitcher.v1.AdStitchDetail

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdStitchDetail build()
Returns
Type Description
AdStitchDetail

buildPartial()

public AdStitchDetail buildPartial()
Returns
Type Description
AdStitchDetail

clear()

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

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
Type Description
AdStitchDetail.Builder

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
Type Description
AdStitchDetail.Builder

This builder for chaining.

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];

Returns
Type Description
AdStitchDetail.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMedia()

public AdStitchDetail.Builder clearMedia()
Returns
Type Description
AdStitchDetail.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
Type Description
AdStitchDetail.Builder

This builder for chaining.

clone()

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

containsMedia(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAdBreakId()

public String getAdBreakId()

Required. The ad break ID of the processed ad.

string ad_break_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The adBreakId.

getAdBreakIdBytes()

public ByteString getAdBreakIdBytes()

Required. The ad break ID of the processed ad.

string ad_break_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for adBreakId.

getAdId()

public String getAdId()

Required. The ad ID of the processed ad.

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

Returns
Type Description
String

The adId.

getAdIdBytes()

public ByteString getAdIdBytes()

Required. The ad ID of the processed ad.

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

Returns
Type Description
ByteString

The bytes for adId.

getAdTimeOffset()

public Duration getAdTimeOffset()

Required. The time offset of the processed ad.

.google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The adTimeOffset.

getAdTimeOffsetBuilder()

public Duration.Builder getAdTimeOffsetBuilder()

Required. The time offset of the processed ad.

.google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getAdTimeOffsetOrBuilder()

public DurationOrBuilder getAdTimeOffsetOrBuilder()

Required. The time offset of the processed ad.

.google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public AdStitchDetail getDefaultInstanceForType()
Returns
Type Description
AdStitchDetail

getDescriptorForType()

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

getMedia() (deprecated)

public Map<String,Value> getMedia()

Use #getMediaMap() instead.

Returns
Type Description
Map<String,Value>

getMediaCount()

public int getMediaCount()

Optional. The metadata of the chosen media file for the ad.

map<string, .google.protobuf.Value> media = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getMediaMap()

public Map<String,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];

Returns
Type Description
Map<String,Value>

getMediaOrDefault(String key, Value defaultValue)

public Value getMediaOrDefault(String key, 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];

Parameters
Name Description
key String
defaultValue Value
Returns
Type Description
Value

getMediaOrThrow(String key)

public 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];

Parameter
Name Description
key String
Returns
Type Description
Value

getMutableMedia() (deprecated)

public Map<String,Value> getMutableMedia()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Value>

getSkipReason()

public String getSkipReason()

Optional. Indicates the reason why the ad has been skipped.

string skip_reason = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The skipReason.

getSkipReasonBytes()

public ByteString getSkipReasonBytes()

Optional. Indicates the reason why the ad has been skipped.

string skip_reason = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for skipReason.

hasAdTimeOffset()

public boolean hasAdTimeOffset()

Required. The time offset of the processed ad.

.google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the adTimeOffset field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdTimeOffset(Duration value)

public AdStitchDetail.Builder mergeAdTimeOffset(Duration value)

Required. The time offset of the processed ad.

.google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
AdStitchDetail.Builder

mergeFrom(AdStitchDetail other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllMedia(Map<String,Value> values)

public AdStitchDetail.Builder putAllMedia(Map<String,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];

Parameter
Name Description
values Map<String,Value>
Returns
Type Description
AdStitchDetail.Builder

putMedia(String key, Value value)

public AdStitchDetail.Builder putMedia(String key, 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];

Parameters
Name Description
key String
value Value
Returns
Type Description
AdStitchDetail.Builder

putMediaBuilderIfAbsent(String key)

public 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];

Parameter
Name Description
key String
Returns
Type Description
Builder

removeMedia(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
AdStitchDetail.Builder

setAdBreakId(String value)

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];

Parameter
Name Description
value String

The adBreakId to set.

Returns
Type Description
AdStitchDetail.Builder

This builder for chaining.

setAdBreakIdBytes(ByteString value)

public AdStitchDetail.Builder setAdBreakIdBytes(ByteString value)

Required. The ad break ID of the processed ad.

string ad_break_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for adBreakId to set.

Returns
Type Description
AdStitchDetail.Builder

This builder for chaining.

setAdId(String value)

public AdStitchDetail.Builder setAdId(String value)

Required. The ad ID of the processed ad.

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

Parameter
Name Description
value String

The adId to set.

Returns
Type Description
AdStitchDetail.Builder

This builder for chaining.

setAdIdBytes(ByteString value)

public AdStitchDetail.Builder setAdIdBytes(ByteString value)

Required. The ad ID of the processed ad.

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

Parameter
Name Description
value ByteString

The bytes for adId to set.

Returns
Type Description
AdStitchDetail.Builder

This builder for chaining.

setAdTimeOffset(Duration value)

public AdStitchDetail.Builder setAdTimeOffset(Duration value)

Required. The time offset of the processed ad.

.google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
AdStitchDetail.Builder

setAdTimeOffset(Duration.Builder builderForValue)

public AdStitchDetail.Builder setAdTimeOffset(Duration.Builder builderForValue)

Required. The time offset of the processed ad.

.google.protobuf.Duration ad_time_offset = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AdStitchDetail.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSkipReason(String value)

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];

Parameter
Name Description
value String

The skipReason to set.

Returns
Type Description
AdStitchDetail.Builder

This builder for chaining.

setSkipReasonBytes(ByteString value)

public AdStitchDetail.Builder setSkipReasonBytes(ByteString value)

Optional. Indicates the reason why the ad has been skipped.

string skip_reason = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for skipReason to set.

Returns
Type Description
AdStitchDetail.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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