Class ResponseMetadata.Builder (0.5.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResponseMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResponseMetadata.Builder
Overrides

build()

public ResponseMetadata build()
Returns
TypeDescription
ResponseMetadata

buildPartial()

public ResponseMetadata buildPartial()
Returns
TypeDescription
ResponseMetadata

clear()

public ResponseMetadata.Builder clear()
Returns
TypeDescription
ResponseMetadata.Builder
Overrides

clearBody()

public ResponseMetadata.Builder clearBody()

The body of the response.

string body = 6;

Returns
TypeDescription
ResponseMetadata.Builder

This builder for chaining.

clearDuration()

public ResponseMetadata.Builder clearDuration()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
TypeDescription
ResponseMetadata.Builder

clearError()

public ResponseMetadata.Builder clearError()

Error message received when making the ad request.

string error = 1;

Returns
TypeDescription
ResponseMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResponseMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResponseMetadata.Builder
Overrides

clearHeaders()

public ResponseMetadata.Builder clearHeaders()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
TypeDescription
ResponseMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ResponseMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResponseMetadata.Builder
Overrides

clearSizeBytes()

public ResponseMetadata.Builder clearSizeBytes()

Size in bytes of the response.

int32 size_bytes = 4;

Returns
TypeDescription
ResponseMetadata.Builder

This builder for chaining.

clearStatusCode()

public ResponseMetadata.Builder clearStatusCode()

Status code for the response.

string status_code = 3;

Returns
TypeDescription
ResponseMetadata.Builder

This builder for chaining.

clone()

public ResponseMetadata.Builder clone()
Returns
TypeDescription
ResponseMetadata.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDuration()

public Duration getDuration()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
TypeDescription
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Returns
TypeDescription
Builder

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.

getHeadersBuilder()

public Struct.Builder getHeadersBuilder()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
TypeDescription
Builder

getHeadersOrBuilder()

public StructOrBuilder getHeadersOrBuilder()

Headers from the response.

.google.protobuf.Struct headers = 2;

Returns
TypeDescription
StructOrBuilder

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDuration(Duration value)

public ResponseMetadata.Builder mergeDuration(Duration value)

Total time elapsed for the response.

.google.protobuf.Duration duration = 5;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
ResponseMetadata.Builder

mergeFrom(ResponseMetadata other)

public ResponseMetadata.Builder mergeFrom(ResponseMetadata other)
Parameter
NameDescription
otherResponseMetadata
Returns
TypeDescription
ResponseMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResponseMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResponseMetadata.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResponseMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResponseMetadata.Builder
Overrides

mergeHeaders(Struct value)

public ResponseMetadata.Builder mergeHeaders(Struct value)

Headers from the response.

.google.protobuf.Struct headers = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ResponseMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResponseMetadata.Builder
Overrides

setBody(String value)

public ResponseMetadata.Builder setBody(String value)

The body of the response.

string body = 6;

Parameter
NameDescription
valueString

The body to set.

Returns
TypeDescription
ResponseMetadata.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public ResponseMetadata.Builder setBodyBytes(ByteString value)

The body of the response.

string body = 6;

Parameter
NameDescription
valueByteString

The bytes for body to set.

Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ResponseMetadata.Builder

setError(String value)

public ResponseMetadata.Builder setError(String value)

Error message received when making the ad request.

string error = 1;

Parameter
NameDescription
valueString

The error to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for error to set.

Returns
TypeDescription
ResponseMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResponseMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResponseMetadata.Builder
Overrides

setHeaders(Struct value)

public ResponseMetadata.Builder setHeaders(Struct value)

Headers from the response.

.google.protobuf.Struct headers = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ResponseMetadata.Builder

setHeaders(Struct.Builder builderForValue)

public ResponseMetadata.Builder setHeaders(Struct.Builder builderForValue)

Headers from the response.

.google.protobuf.Struct headers = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ResponseMetadata.Builder

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

public ResponseMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResponseMetadata.Builder
Overrides

setSizeBytes(int value)

public ResponseMetadata.Builder setSizeBytes(int value)

Size in bytes of the response.

int32 size_bytes = 4;

Parameter
NameDescription
valueint

The sizeBytes to set.

Returns
TypeDescription
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
NameDescription
valueString

The statusCode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for statusCode to set.

Returns
TypeDescription
ResponseMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResponseMetadata.Builder
Overrides