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
public static final int DURATION_FIELD_NUMBER
Field Value
public static final int ERROR_FIELD_NUMBER
Field Value
public static final int HEADERS_FIELD_NUMBER
Field Value
public static final int SIZE_BYTES_FIELD_NUMBER
Field Value
public static final int STATUS_CODE_FIELD_NUMBER
Field Value
Static Methods
public static ResponseMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static ResponseMetadata.Builder newBuilder()
Returns
public static ResponseMetadata.Builder newBuilder(ResponseMetadata prototype)
Parameter
Returns
public static ResponseMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResponseMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResponseMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ResponseMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResponseMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ResponseMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResponseMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ResponseMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResponseMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResponseMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResponseMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ResponseMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ResponseMetadata> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBody()
The body of the response.
string body = 6;
Returns
Type | Description |
String | The body.
|
getBodyBytes()
public ByteString getBodyBytes()
The body of the response.
string body = 6;
Returns
public ResponseMetadata getDefaultInstanceForType()
Returns
public Duration getDuration()
Total time elapsed for the response.
.google.protobuf.Duration duration = 5;
Returns
public DurationOrBuilder getDurationOrBuilder()
Total time elapsed for the response.
.google.protobuf.Duration duration = 5;
Returns
Error message received when making the ad request.
string error = 1;
Returns
Type | Description |
String | The error.
|
public ByteString getErrorBytes()
Error message received when making the ad request.
string error = 1;
Returns
public Struct getHeaders()
Headers from the response.
.google.protobuf.Struct headers = 2;
Returns
Type | Description |
Struct | The headers.
|
public StructOrBuilder getHeadersOrBuilder()
Headers from the response.
.google.protobuf.Struct headers = 2;
Returns
public Parser<ResponseMetadata> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public int getSizeBytes()
Size in bytes of the response.
int32 size_bytes = 4;
Returns
Type | Description |
int | The sizeBytes.
|
public String getStatusCode()
Status code for the response.
string status_code = 3;
Returns
Type | Description |
String | The statusCode.
|
public ByteString getStatusCodeBytes()
Status code for the response.
string status_code = 3;
Returns
Type | Description |
ByteString | The bytes for statusCode.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasDuration()
Total time elapsed for the response.
.google.protobuf.Duration duration = 5;
Returns
Type | Description |
boolean | Whether the duration field is set.
|
public boolean hasHeaders()
Headers from the response.
.google.protobuf.Struct headers = 2;
Returns
Type | Description |
boolean | Whether the headers field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ResponseMetadata.Builder newBuilderForType()
Returns
protected ResponseMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public ResponseMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions