Class AdRequest (0.12.0)

public final class AdRequest extends GeneratedMessageV3 implements AdRequestOrBuilder

Details of an ad request to an ad server.

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

Implements

AdRequestOrBuilder

Static Fields

REQUEST_METADATA_FIELD_NUMBER

public static final int REQUEST_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

RESPONSE_METADATA_FIELD_NUMBER

public static final int RESPONSE_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AdRequest getDefaultInstance()
Returns
TypeDescription
AdRequest

getDescriptor()

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

newBuilder()

public static AdRequest.Builder newBuilder()
Returns
TypeDescription
AdRequest.Builder

newBuilder(AdRequest prototype)

public static AdRequest.Builder newBuilder(AdRequest prototype)
Parameter
NameDescription
prototypeAdRequest
Returns
TypeDescription
AdRequest.Builder

parseDelimitedFrom(InputStream input)

public static AdRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AdRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AdRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AdRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AdRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AdRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AdRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AdRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AdRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AdRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AdRequest> parser()
Returns
TypeDescription
Parser<AdRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AdRequest getDefaultInstanceForType()
Returns
TypeDescription
AdRequest

getParserForType()

public Parser<AdRequest> getParserForType()
Returns
TypeDescription
Parser<AdRequest>
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.

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.

getResponseMetadataOrBuilder()

public ResponseMetadataOrBuilder getResponseMetadataOrBuilder()

The response metadata received from the ad request.

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

Returns
TypeDescription
ResponseMetadataOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AdRequest.Builder newBuilderForType()
Returns
TypeDescription
AdRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AdRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AdRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AdRequest.Builder toBuilder()
Returns
TypeDescription
AdRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException