Class AdStitchDetail.Builder (0.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdStitchDetail build()
Returns
TypeDescription
AdStitchDetail

buildPartial()

public AdStitchDetail buildPartial()
Returns
TypeDescription
AdStitchDetail

clear()

public AdStitchDetail.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AdStitchDetail.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMedia()

public AdStitchDetail.Builder clearMedia()
Returns
TypeDescription
AdStitchDetail.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AdStitchDetail.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AdStitchDetail.Builder

This builder for chaining.

clone()

public AdStitchDetail.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getDefaultInstanceForType()

public AdStitchDetail getDefaultInstanceForType()
Returns
TypeDescription
AdStitchDetail

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMedia()

public Map<String,Value> getMedia()

Use #getMediaMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueValue
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
Value

getMutableMedia()

public Map<String,Value> getMutableMedia()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the adTimeOffset 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

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
NameDescription
valueDuration
Returns
TypeDescription
AdStitchDetail.Builder

mergeFrom(AdStitchDetail other)

public AdStitchDetail.Builder mergeFrom(AdStitchDetail other)
Parameter
NameDescription
otherAdStitchDetail
Returns
TypeDescription
AdStitchDetail.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdStitchDetail.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,Value>
Returns
TypeDescription
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
NameDescription
keyString
valueValue
Returns
TypeDescription
AdStitchDetail.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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueString

The adBreakId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for adBreakId to set.

Returns
TypeDescription
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
NameDescription
valueString

The adId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for adId to set.

Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AdStitchDetail.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public AdStitchDetail.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The skipReason to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for skipReason to set.

Returns
TypeDescription
AdStitchDetail.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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