Class AdRequest.Builder (0.51.0)

public static final class AdRequest.Builder extends GeneratedMessageV3.Builder<AdRequest.Builder> implements AdRequestOrBuilder

Details of an ad request to an ad server.

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

Implements

AdRequestOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdRequest build()
Returns
Type Description
AdRequest

buildPartial()

public AdRequest buildPartial()
Returns
Type Description
AdRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestMetadata()

public AdRequest.Builder clearRequestMetadata()

The request metadata used to make the ad request.

.google.cloud.video.stitcher.v1.RequestMetadata request_metadata = 2;

Returns
Type Description
AdRequest.Builder

clearResponseMetadata()

public AdRequest.Builder clearResponseMetadata()

The response metadata received from the ad request.

.google.cloud.video.stitcher.v1.ResponseMetadata response_metadata = 3;

Returns
Type Description
AdRequest.Builder

clearUri()

public AdRequest.Builder clearUri()

The ad tag URI processed with integrated macros.

string uri = 1;

Returns
Type Description
AdRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AdRequest getDefaultInstanceForType()
Returns
Type Description
AdRequest

getDescriptorForType()

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

getRequestMetadata()

public RequestMetadata getRequestMetadata()

The request metadata used to make the ad request.

.google.cloud.video.stitcher.v1.RequestMetadata request_metadata = 2;

Returns
Type Description
RequestMetadata

The requestMetadata.

getRequestMetadataBuilder()

public RequestMetadata.Builder getRequestMetadataBuilder()

The request metadata used to make the ad request.

.google.cloud.video.stitcher.v1.RequestMetadata request_metadata = 2;

Returns
Type Description
RequestMetadata.Builder

getRequestMetadataOrBuilder()

public RequestMetadataOrBuilder getRequestMetadataOrBuilder()

The request metadata used to make the ad request.

.google.cloud.video.stitcher.v1.RequestMetadata request_metadata = 2;

Returns
Type Description
RequestMetadataOrBuilder

getResponseMetadata()

public ResponseMetadata getResponseMetadata()

The response metadata received from the ad request.

.google.cloud.video.stitcher.v1.ResponseMetadata response_metadata = 3;

Returns
Type Description
ResponseMetadata

The responseMetadata.

getResponseMetadataBuilder()

public ResponseMetadata.Builder getResponseMetadataBuilder()

The response metadata received from the ad request.

.google.cloud.video.stitcher.v1.ResponseMetadata response_metadata = 3;

Returns
Type Description
ResponseMetadata.Builder

getResponseMetadataOrBuilder()

public ResponseMetadataOrBuilder getResponseMetadataOrBuilder()

The response metadata received from the ad request.

.google.cloud.video.stitcher.v1.ResponseMetadata response_metadata = 3;

Returns
Type Description
ResponseMetadataOrBuilder

getUri()

public String getUri()

The ad tag URI processed with integrated macros.

string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The ad tag URI processed with integrated macros.

string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

hasRequestMetadata()

public boolean hasRequestMetadata()

The request metadata used to make the ad request.

.google.cloud.video.stitcher.v1.RequestMetadata request_metadata = 2;

Returns
Type Description
boolean

Whether the requestMetadata field is set.

hasResponseMetadata()

public boolean hasResponseMetadata()

The response metadata received from the ad request.

.google.cloud.video.stitcher.v1.ResponseMetadata response_metadata = 3;

Returns
Type Description
boolean

Whether the responseMetadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRequestMetadata(RequestMetadata value)

public AdRequest.Builder mergeRequestMetadata(RequestMetadata value)

The request metadata used to make the ad request.

.google.cloud.video.stitcher.v1.RequestMetadata request_metadata = 2;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
AdRequest.Builder

mergeResponseMetadata(ResponseMetadata value)

public AdRequest.Builder mergeResponseMetadata(ResponseMetadata value)

The response metadata received from the ad request.

.google.cloud.video.stitcher.v1.ResponseMetadata response_metadata = 3;

Parameter
Name Description
value ResponseMetadata
Returns
Type Description
AdRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRequestMetadata(RequestMetadata value)

public AdRequest.Builder setRequestMetadata(RequestMetadata value)

The request metadata used to make the ad request.

.google.cloud.video.stitcher.v1.RequestMetadata request_metadata = 2;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
AdRequest.Builder

setRequestMetadata(RequestMetadata.Builder builderForValue)

public AdRequest.Builder setRequestMetadata(RequestMetadata.Builder builderForValue)

The request metadata used to make the ad request.

.google.cloud.video.stitcher.v1.RequestMetadata request_metadata = 2;

Parameter
Name Description
builderForValue RequestMetadata.Builder
Returns
Type Description
AdRequest.Builder

setResponseMetadata(ResponseMetadata value)

public AdRequest.Builder setResponseMetadata(ResponseMetadata value)

The response metadata received from the ad request.

.google.cloud.video.stitcher.v1.ResponseMetadata response_metadata = 3;

Parameter
Name Description
value ResponseMetadata
Returns
Type Description
AdRequest.Builder

setResponseMetadata(ResponseMetadata.Builder builderForValue)

public AdRequest.Builder setResponseMetadata(ResponseMetadata.Builder builderForValue)

The response metadata received from the ad request.

.google.cloud.video.stitcher.v1.ResponseMetadata response_metadata = 3;

Parameter
Name Description
builderForValue ResponseMetadata.Builder
Returns
Type Description
AdRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public AdRequest.Builder setUri(String value)

The ad tag URI processed with integrated macros.

string uri = 1;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
AdRequest.Builder

This builder for chaining.

setUriBytes(ByteString value)

public AdRequest.Builder setUriBytes(ByteString value)

The ad tag URI processed with integrated macros.

string uri = 1;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
AdRequest.Builder

This builder for chaining.