Class JobTemplate.Builder (1.10.0)

public static final class JobTemplate.Builder extends GeneratedMessageV3.Builder<JobTemplate.Builder> implements JobTemplateOrBuilder

Transcoding job template resource.

Protobuf type google.cloud.video.transcoder.v1.JobTemplate

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public JobTemplate build()
Returns
TypeDescription
JobTemplate

buildPartial()

public JobTemplate buildPartial()
Returns
TypeDescription
JobTemplate

clear()

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

clearConfig()

public JobTemplate.Builder clearConfig()

The configuration for this template.

.google.cloud.video.transcoder.v1.JobConfig config = 2;

Returns
TypeDescription
JobTemplate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public JobTemplate.Builder clearLabels()
Returns
TypeDescription
JobTemplate.Builder

clearName()

public JobTemplate.Builder clearName()

The resource name of the job template. Format: projects/{project_number}/locations/{location}/jobTemplates/{job_template}

string name = 1;

Returns
TypeDescription
JobTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public JobTemplate.Builder clone()
Returns
TypeDescription
JobTemplate.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

The labels associated with this job template. You can use these to organize and group your job templates.

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getConfig()

public JobConfig getConfig()

The configuration for this template.

.google.cloud.video.transcoder.v1.JobConfig config = 2;

Returns
TypeDescription
JobConfig

The config.

getConfigBuilder()

public JobConfig.Builder getConfigBuilder()

The configuration for this template.

.google.cloud.video.transcoder.v1.JobConfig config = 2;

Returns
TypeDescription
JobConfig.Builder

getConfigOrBuilder()

public JobConfigOrBuilder getConfigOrBuilder()

The configuration for this template.

.google.cloud.video.transcoder.v1.JobConfig config = 2;

Returns
TypeDescription
JobConfigOrBuilder

getDefaultInstanceForType()

public JobTemplate getDefaultInstanceForType()
Returns
TypeDescription
JobTemplate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The labels associated with this job template. You can use these to organize and group your job templates.

map<string, string> labels = 3;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The labels associated with this job template. You can use these to organize and group your job templates.

map<string, string> labels = 3;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The labels associated with this job template. You can use these to organize and group your job templates.

map<string, string> labels = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The labels associated with this job template. You can use these to organize and group your job templates.

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The resource name of the job template. Format: projects/{project_number}/locations/{location}/jobTemplates/{job_template}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the job template. Format: projects/{project_number}/locations/{location}/jobTemplates/{job_template}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

hasConfig()

public boolean hasConfig()

The configuration for this template.

.google.cloud.video.transcoder.v1.JobConfig config = 2;

Returns
TypeDescription
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConfig(JobConfig value)

public JobTemplate.Builder mergeConfig(JobConfig value)

The configuration for this template.

.google.cloud.video.transcoder.v1.JobConfig config = 2;

Parameter
NameDescription
valueJobConfig
Returns
TypeDescription
JobTemplate.Builder

mergeFrom(JobTemplate other)

public JobTemplate.Builder mergeFrom(JobTemplate other)
Parameter
NameDescription
otherJobTemplate
Returns
TypeDescription
JobTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public JobTemplate.Builder putAllLabels(Map<String,String> values)

The labels associated with this job template. You can use these to organize and group your job templates.

map<string, string> labels = 3;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
JobTemplate.Builder

putLabels(String key, String value)

public JobTemplate.Builder putLabels(String key, String value)

The labels associated with this job template. You can use these to organize and group your job templates.

map<string, string> labels = 3;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
JobTemplate.Builder

removeLabels(String key)

public JobTemplate.Builder removeLabels(String key)

The labels associated with this job template. You can use these to organize and group your job templates.

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
JobTemplate.Builder

setConfig(JobConfig value)

public JobTemplate.Builder setConfig(JobConfig value)

The configuration for this template.

.google.cloud.video.transcoder.v1.JobConfig config = 2;

Parameter
NameDescription
valueJobConfig
Returns
TypeDescription
JobTemplate.Builder

setConfig(JobConfig.Builder builderForValue)

public JobTemplate.Builder setConfig(JobConfig.Builder builderForValue)

The configuration for this template.

.google.cloud.video.transcoder.v1.JobConfig config = 2;

Parameter
NameDescription
builderForValueJobConfig.Builder
Returns
TypeDescription
JobTemplate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public JobTemplate.Builder setName(String value)

The resource name of the job template. Format: projects/{project_number}/locations/{location}/jobTemplates/{job_template}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
JobTemplate.Builder

This builder for chaining.

setNameBytes(ByteString value)

public JobTemplate.Builder setNameBytes(ByteString value)

The resource name of the job template. Format: projects/{project_number}/locations/{location}/jobTemplates/{job_template}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
JobTemplate.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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