Class ResponseMetadata (0.49.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class ResponseMetadata extends GeneratedMessageV3 implements ResponseMetadataOrBuilder
Metadata for the response of an ad request.
Protobuf type google.cloud.video.stitcher.v1.ResponseMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DURATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ERROR_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int HEADERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SIZE_BYTES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int STATUS_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static ResponseMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ResponseMetadata.Builder newBuilder()
public static ResponseMetadata.Builder newBuilder(ResponseMetadata prototype)
public static ResponseMetadata parseDelimitedFrom(InputStream input)
public static ResponseMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ResponseMetadata parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static ResponseMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResponseMetadata parseFrom(ByteString data)
public static ResponseMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResponseMetadata parseFrom(CodedInputStream input)
public static ResponseMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ResponseMetadata parseFrom(InputStream input)
public static ResponseMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ResponseMetadata parseFrom(ByteBuffer data)
public static ResponseMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ResponseMetadata> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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 |
Type |
Description |
ByteString |
The bytes for body.
|
public ResponseMetadata getDefaultInstanceForType()
public Duration getDuration()
Total time elapsed for the response.
.google.protobuf.Duration duration = 5;
Returns |
Type |
Description |
Duration |
The duration.
|
public DurationOrBuilder getDurationOrBuilder()
Total time elapsed for the response.
.google.protobuf.Duration duration = 5;
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 |
Type |
Description |
ByteString |
The bytes for error.
|
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;
public Parser<ResponseMetadata> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
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 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 |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ResponseMetadata.Builder newBuilderForType()
protected ResponseMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public ResponseMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-01 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-01 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-01 UTC."]]