Class FetchOptions.Builder (0.48.0)

public static final class FetchOptions.Builder extends GeneratedMessageV3.Builder<FetchOptions.Builder> implements FetchOptionsOrBuilder

Options on how fetches should be made.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchOptions build()
Returns
Type Description
FetchOptions

buildPartial()

public FetchOptions buildPartial()
Returns
Type Description
FetchOptions

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHeaders()

public FetchOptions.Builder clearHeaders()
Returns
Type Description
FetchOptions.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsHeaders(String key)

public boolean containsHeaders(String key)

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public FetchOptions getDefaultInstanceForType()
Returns
Type Description
FetchOptions

getDescriptorForType()

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

getHeaders() (deprecated)

public Map<String,String> getHeaders()

Use #getHeadersMap() instead.

Returns
Type Description
Map<String,String>

getHeadersCount()

public int getHeadersCount()

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Returns
Type Description
int

getHeadersMap()

public Map<String,String> getHeadersMap()

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Returns
Type Description
Map<String,String>

getHeadersOrDefault(String key, String defaultValue)

public String getHeadersOrDefault(String key, String defaultValue)

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getHeadersOrThrow(String key)

public String getHeadersOrThrow(String key)

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableHeaders() (deprecated)

public Map<String,String> getMutableHeaders()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllHeaders(Map<String,String> values)

public FetchOptions.Builder putAllHeaders(Map<String,String> values)

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
FetchOptions.Builder

putHeaders(String key, String value)

public FetchOptions.Builder putHeaders(String key, String value)

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Parameters
Name Description
key String
value String
Returns
Type Description
FetchOptions.Builder

removeHeaders(String key)

public FetchOptions.Builder removeHeaders(String key)

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Parameter
Name Description
key String
Returns
Type Description
FetchOptions.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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