Class JobTemplate.Builder (0.15.0)

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

Transcoding job template resource.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public JobTemplate build()
Returns
Type Description
JobTemplate

buildPartial()

public JobTemplate buildPartial()
Returns
Type Description
JobTemplate

clear()

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

clearConfig()

public JobTemplate.Builder clearConfig()

The configuration for this template.

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

Returns
Type Description
JobTemplate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public JobTemplate.Builder clearLabels()
Returns
Type Description
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
Type Description
JobTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public JobTemplate.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getConfig()

public JobConfig getConfig()

The configuration for this template.

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

Returns
Type Description
JobConfig

The config.

getConfigBuilder()

public JobConfig.Builder getConfigBuilder()

The configuration for this template.

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

Returns
Type Description
JobConfig.Builder

getConfigOrBuilder()

public JobConfigOrBuilder getConfigOrBuilder()

The configuration for this template.

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

Returns
Type Description
JobConfigOrBuilder

getDefaultInstanceForType()

public JobTemplate getDefaultInstanceForType()
Returns
Type Description
JobTemplate

getDescriptorForType()

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

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

hasConfig()

public boolean hasConfig()

The configuration for this template.

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

Returns
Type Description
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfig(JobConfig value)

public JobTemplate.Builder mergeConfig(JobConfig value)

The configuration for this template.

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

Parameter
Name Description
value JobConfig
Returns
Type Description
JobTemplate.Builder

mergeFrom(JobTemplate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
JobTemplate.Builder

setConfig(JobConfig value)

public JobTemplate.Builder setConfig(JobConfig value)

The configuration for this template.

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

Parameter
Name Description
value JobConfig
Returns
Type Description
JobTemplate.Builder

setConfig(JobConfig.Builder builderForValue)

public JobTemplate.Builder setConfig(JobConfig.Builder builderForValue)

The configuration for this template.

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

Parameter
Name Description
builderForValue JobConfig.Builder
Returns
Type Description
JobTemplate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
JobTemplate.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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