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>)
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)
Overrides
public ResponseMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides