Class ResponseMetadata (0.18.0)

public final class ResponseMetadata extends GeneratedMessageV3 implements ResponseMetadataOrBuilder

Metadata for the response of an ad request.

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

Static Fields

BODY_FIELD_NUMBER

public static final int BODY_FIELD_NUMBER
Field Value
TypeDescription
int

DURATION_FIELD_NUMBER

public static final int DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

HEADERS_FIELD_NUMBER

public static final int HEADERS_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_BYTES_FIELD_NUMBER

public static final int SIZE_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_CODE_FIELD_NUMBER

public static final int STATUS_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResponseMetadata getDefaultInstance()
Returns
TypeDescription
ResponseMetadata

getDescriptor()

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

newBuilder()

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

newBuilder(ResponseMetadata prototype)

public static ResponseMetadata.Builder newBuilder(ResponseMetadata prototype)
Parameter
NameDescription
prototypeResponseMetadata
Returns
TypeDescription
ResponseMetadata.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBody()

public String getBody()

The body of the response.

string body = 6;

Returns
TypeDescription
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

The body of the response.

string body = 6;

Returns
TypeDescription
ByteString

The bytes for body.

getDefaultInstanceForType()

public ResponseMetadata getDefaultInstanceForType()
Returns
TypeDescription
ResponseMetadata

getDuration()

public Duration getDuration()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
TypeDescription
Duration

The duration.

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
TypeDescription
DurationOrBuilder

getError()

public String getError()

Error message received when making the ad request.

string error = 1;

Returns
TypeDescription
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

Error message received when making the ad request.

string error = 1;

Returns
TypeDescription
ByteString

The bytes for error.

getHeaders()

public Struct getHeaders()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
TypeDescription
Struct

The headers.

getHeadersOrBuilder()

public StructOrBuilder getHeadersOrBuilder()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
TypeDescription
StructOrBuilder

getParserForType()

public Parser<ResponseMetadata> getParserForType()
Returns
TypeDescription
Parser<ResponseMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSizeBytes()

public int getSizeBytes()

Size in bytes of the response.

int32 size_bytes = 4;

Returns
TypeDescription
int

The sizeBytes.

getStatusCode()

public String getStatusCode()

Status code for the response.

string status_code = 3;

Returns
TypeDescription
String

The statusCode.

getStatusCodeBytes()

public ByteString getStatusCodeBytes()

Status code for the response.

string status_code = 3;

Returns
TypeDescription
ByteString

The bytes for statusCode.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasDuration()

public boolean hasDuration()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
TypeDescription
boolean

Whether the duration field is set.

hasHeaders()

public boolean hasHeaders()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
TypeDescription
boolean

Whether the headers 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 ResponseMetadata.Builder newBuilderForType()
Returns
TypeDescription
ResponseMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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