Class StaticAdResource.Builder (0.20.0)

public static final class StaticAdResource.Builder extends GeneratedMessageV3.Builder<StaticAdResource.Builder> implements StaticAdResourceOrBuilder

Metadata for a static ad resource.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StaticAdResource build()
Returns
TypeDescription
StaticAdResource

buildPartial()

public StaticAdResource buildPartial()
Returns
TypeDescription
StaticAdResource

clear()

public StaticAdResource.Builder clear()
Returns
TypeDescription
StaticAdResource.Builder
Overrides

clearCreativeType()

public StaticAdResource.Builder clearCreativeType()

Describes the MIME type of the ad resource.

string creative_type = 2;

Returns
TypeDescription
StaticAdResource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public StaticAdResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StaticAdResource.Builder
Overrides

clearUri()

public StaticAdResource.Builder clearUri()

URI to the static file for the ad resource.

string uri = 1;

Returns
TypeDescription
StaticAdResource.Builder

This builder for chaining.

clone()

public StaticAdResource.Builder clone()
Returns
TypeDescription
StaticAdResource.Builder
Overrides

getCreativeType()

public String getCreativeType()

Describes the MIME type of the ad resource.

string creative_type = 2;

Returns
TypeDescription
String

The creativeType.

getCreativeTypeBytes()

public ByteString getCreativeTypeBytes()

Describes the MIME type of the ad resource.

string creative_type = 2;

Returns
TypeDescription
ByteString

The bytes for creativeType.

getDefaultInstanceForType()

public StaticAdResource getDefaultInstanceForType()
Returns
TypeDescription
StaticAdResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUri()

public String getUri()

URI to the static file for the ad resource.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI to the static file for the ad resource.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StaticAdResource other)

public StaticAdResource.Builder mergeFrom(StaticAdResource other)
Parameter
NameDescription
otherStaticAdResource
Returns
TypeDescription
StaticAdResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StaticAdResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StaticAdResource.Builder
Overrides

setCreativeType(String value)

public StaticAdResource.Builder setCreativeType(String value)

Describes the MIME type of the ad resource.

string creative_type = 2;

Parameter
NameDescription
valueString

The creativeType to set.

Returns
TypeDescription
StaticAdResource.Builder

This builder for chaining.

setCreativeTypeBytes(ByteString value)

public StaticAdResource.Builder setCreativeTypeBytes(ByteString value)

Describes the MIME type of the ad resource.

string creative_type = 2;

Parameter
NameDescription
valueByteString

The bytes for creativeType to set.

Returns
TypeDescription
StaticAdResource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public StaticAdResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StaticAdResource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public StaticAdResource.Builder setUri(String value)

URI to the static file for the ad resource.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
StaticAdResource.Builder

This builder for chaining.

setUriBytes(ByteString value)

public StaticAdResource.Builder setUriBytes(ByteString value)

URI to the static file for the ad resource.

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
StaticAdResource.Builder

This builder for chaining.