Class ResponseMetadata.Builder (0.54.0)

public static final class ResponseMetadata.Builder extends GeneratedMessageV3.Builder<ResponseMetadata.Builder> implements ResponseMetadataOrBuilder

Metadata for the response of an ad request.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResponseMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResponseMetadata.Builder
Overrides

build()

public ResponseMetadata build()
Returns
Type Description
ResponseMetadata

buildPartial()

public ResponseMetadata buildPartial()
Returns
Type Description
ResponseMetadata

clear()

public ResponseMetadata.Builder clear()
Returns
Type Description
ResponseMetadata.Builder
Overrides

clearBody()

public ResponseMetadata.Builder clearBody()

The body of the response.

string body = 6;

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

clearDuration()

public ResponseMetadata.Builder clearDuration()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
Type Description
ResponseMetadata.Builder

clearError()

public ResponseMetadata.Builder clearError()

Error message received when making the ad request.

string error = 1;

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResponseMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResponseMetadata.Builder
Overrides

clearHeaders()

public ResponseMetadata.Builder clearHeaders()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
Type Description
ResponseMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ResponseMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResponseMetadata.Builder
Overrides

clearSizeBytes()

public ResponseMetadata.Builder clearSizeBytes()

Size in bytes of the response.

int32 size_bytes = 4;

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

clearStatusCode()

public ResponseMetadata.Builder clearStatusCode()

Status code for the response.

string status_code = 3;

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

clone()

public ResponseMetadata.Builder clone()
Returns
Type Description
ResponseMetadata.Builder
Overrides

getBody()

public String 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.

getDefaultInstanceForType()

public ResponseMetadata getDefaultInstanceForType()
Returns
Type Description
ResponseMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDuration()

public Duration getDuration()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
Type Description
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
Type Description
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
Type Description
DurationOrBuilder

getError()

public String getError()

Error message received when making the ad request.

string error = 1;

Returns
Type Description
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

Error message received when making the ad request.

string error = 1;

Returns
Type Description
ByteString

The bytes for error.

getHeaders()

public Struct getHeaders()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
Type Description
Struct

The headers.

getHeadersBuilder()

public Struct.Builder getHeadersBuilder()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
Type Description
Builder

getHeadersOrBuilder()

public StructOrBuilder getHeadersOrBuilder()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
Type Description
StructOrBuilder

getSizeBytes()

public int getSizeBytes()

Size in bytes of the response.

int32 size_bytes = 4;

Returns
Type Description
int

The sizeBytes.

getStatusCode()

public String getStatusCode()

Status code for the response.

string status_code = 3;

Returns
Type Description
String

The statusCode.

getStatusCodeBytes()

public ByteString getStatusCodeBytes()

Status code for the response.

string status_code = 3;

Returns
Type Description
ByteString

The bytes for statusCode.

hasDuration()

public boolean hasDuration()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
Type Description
boolean

Whether the duration field is set.

hasHeaders()

public boolean hasHeaders()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
Type Description
boolean

Whether the headers field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDuration(Duration value)

public ResponseMetadata.Builder mergeDuration(Duration value)

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Parameter
Name Description
value Duration
Returns
Type Description
ResponseMetadata.Builder

mergeFrom(ResponseMetadata other)

public ResponseMetadata.Builder mergeFrom(ResponseMetadata other)
Parameter
Name Description
other ResponseMetadata
Returns
Type Description
ResponseMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResponseMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResponseMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResponseMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResponseMetadata.Builder
Overrides

mergeHeaders(Struct value)

public ResponseMetadata.Builder mergeHeaders(Struct value)

Headers from the response.

.google.protobuf.Struct headers = 2;

Parameter
Name Description
value Struct
Returns
Type Description
ResponseMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResponseMetadata.Builder
Overrides

setBody(String value)

public ResponseMetadata.Builder setBody(String value)

The body of the response.

string body = 6;

Parameter
Name Description
value String

The body to set.

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public ResponseMetadata.Builder setBodyBytes(ByteString value)

The body of the response.

string body = 6;

Parameter
Name Description
value ByteString

The bytes for body to set.

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

setDuration(Duration value)

public ResponseMetadata.Builder setDuration(Duration value)

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Parameter
Name Description
value Duration
Returns
Type Description
ResponseMetadata.Builder

setDuration(Duration.Builder builderForValue)

public ResponseMetadata.Builder setDuration(Duration.Builder builderForValue)

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ResponseMetadata.Builder

setError(String value)

public ResponseMetadata.Builder setError(String value)

Error message received when making the ad request.

string error = 1;

Parameter
Name Description
value String

The error to set.

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

setErrorBytes(ByteString value)

public ResponseMetadata.Builder setErrorBytes(ByteString value)

Error message received when making the ad request.

string error = 1;

Parameter
Name Description
value ByteString

The bytes for error to set.

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResponseMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResponseMetadata.Builder
Overrides

setHeaders(Struct value)

public ResponseMetadata.Builder setHeaders(Struct value)

Headers from the response.

.google.protobuf.Struct headers = 2;

Parameter
Name Description
value Struct
Returns
Type Description
ResponseMetadata.Builder

setHeaders(Struct.Builder builderForValue)

public ResponseMetadata.Builder setHeaders(Struct.Builder builderForValue)

Headers from the response.

.google.protobuf.Struct headers = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ResponseMetadata.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResponseMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResponseMetadata.Builder
Overrides

setSizeBytes(int value)

public ResponseMetadata.Builder setSizeBytes(int value)

Size in bytes of the response.

int32 size_bytes = 4;

Parameter
Name Description
value int

The sizeBytes to set.

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

setStatusCode(String value)

public ResponseMetadata.Builder setStatusCode(String value)

Status code for the response.

string status_code = 3;

Parameter
Name Description
value String

The statusCode to set.

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

setStatusCodeBytes(ByteString value)

public ResponseMetadata.Builder setStatusCodeBytes(ByteString value)

Status code for the response.

string status_code = 3;

Parameter
Name Description
value ByteString

The bytes for statusCode to set.

Returns
Type Description
ResponseMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResponseMetadata.Builder
Overrides