Class AdRequest.Builder (0.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdRequest build()
Returns
TypeDescription
AdRequest

buildPartial()

public AdRequest buildPartial()
Returns
TypeDescription
AdRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public AdRequest.Builder clearUri()

The ad tag URI processed with integrated macros.

string uri = 1;

Returns
TypeDescription
AdRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AdRequest getDefaultInstanceForType()
Returns
TypeDescription
AdRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RequestMetadataOrBuilder

getResponseMetadata()

public ResponseMetadata getResponseMetadata()

The response metadata received from the ad request.

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

Returns
TypeDescription
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
TypeDescription
ResponseMetadata.Builder

getResponseMetadataOrBuilder()

public ResponseMetadataOrBuilder getResponseMetadataOrBuilder()

The response metadata received from the ad request.

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

Returns
TypeDescription
ResponseMetadataOrBuilder

getUri()

public String getUri()

The ad tag URI processed with integrated macros.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The ad tag URI processed with integrated macros.

string uri = 1;

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

Whether the responseMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AdRequest other)

public AdRequest.Builder mergeFrom(AdRequest other)
Parameter
NameDescription
otherAdRequest
Returns
TypeDescription
AdRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AdRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRequestMetadata
Returns
TypeDescription
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
NameDescription
valueResponseMetadata
Returns
TypeDescription
AdRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public AdRequest.Builder setUri(String value)

The ad tag URI processed with integrated macros.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

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

The bytes for uri to set.

Returns
TypeDescription
AdRequest.Builder

This builder for chaining.