Class JobTemplate.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<JobTemplate.Builder>
com.google.cloud.video.transcoder.v1.JobTemplate.Builder
All Implemented Interfaces:
JobTemplateOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
JobTemplate

public static final class JobTemplate.Builder extends com.google.protobuf.GeneratedMessage.Builder<JobTemplate.Builder> implements JobTemplateOrBuilder
 Transcoding job template resource.
 
Protobuf type google.cloud.video.transcoder.v1.JobTemplate
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<JobTemplate.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<JobTemplate.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<JobTemplate.Builder>
    • clear

      public JobTemplate.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<JobTemplate.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<JobTemplate.Builder>
    • getDefaultInstanceForType

      public JobTemplate getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public JobTemplate build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public JobTemplate buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public JobTemplate.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<JobTemplate.Builder>
    • mergeFrom

      public JobTemplate.Builder mergeFrom(JobTemplate other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<JobTemplate.Builder>
    • mergeFrom

      public JobTemplate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<JobTemplate.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The resource name of the job template.
       Format:
       `projects/{project_number}/locations/{location}/jobTemplates/{job_template}`
       
      string name = 1;
      Specified by:
      getName in interface JobTemplateOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name of the job template.
       Format:
       `projects/{project_number}/locations/{location}/jobTemplates/{job_template}`
       
      string name = 1;
      Specified by:
      getNameBytes in interface JobTemplateOrBuilder
      Returns:
      The bytes for name.
    • setName

      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;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public JobTemplate.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name of the job template.
       Format:
       `projects/{project_number}/locations/{location}/jobTemplates/{job_template}`
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasConfig

      public boolean hasConfig()
       The configuration for this template.
       
      .google.cloud.video.transcoder.v1.JobConfig config = 2;
      Specified by:
      hasConfig in interface JobTemplateOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public JobConfig getConfig()
       The configuration for this template.
       
      .google.cloud.video.transcoder.v1.JobConfig config = 2;
      Specified by:
      getConfig in interface JobTemplateOrBuilder
      Returns:
      The config.
    • setConfig

      public JobTemplate.Builder setConfig(JobConfig value)
       The configuration for this template.
       
      .google.cloud.video.transcoder.v1.JobConfig config = 2;
    • setConfig

      public JobTemplate.Builder setConfig(JobConfig.Builder builderForValue)
       The configuration for this template.
       
      .google.cloud.video.transcoder.v1.JobConfig config = 2;
    • mergeConfig

      public JobTemplate.Builder mergeConfig(JobConfig value)
       The configuration for this template.
       
      .google.cloud.video.transcoder.v1.JobConfig config = 2;
    • clearConfig

      public JobTemplate.Builder clearConfig()
       The configuration for this template.
       
      .google.cloud.video.transcoder.v1.JobConfig config = 2;
    • getConfigBuilder

      public JobConfig.Builder getConfigBuilder()
       The configuration for this template.
       
      .google.cloud.video.transcoder.v1.JobConfig config = 2;
    • getConfigOrBuilder

      public JobConfigOrBuilder getConfigOrBuilder()
       The configuration for this template.
       
      .google.cloud.video.transcoder.v1.JobConfig config = 2;
      Specified by:
      getConfigOrBuilder in interface JobTemplateOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: JobTemplateOrBuilder
       The labels associated with this job template. You can use these to organize
       and group your job templates.
       
      map<string, string> labels = 3;
      Specified by:
      getLabelsCount in interface JobTemplateOrBuilder
    • containsLabels

      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;
      Specified by:
      containsLabels in interface JobTemplateOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface JobTemplateOrBuilder
    • 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;
      Specified by:
      getLabelsMap in interface JobTemplateOrBuilder
    • getLabelsOrDefault

      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;
      Specified by:
      getLabelsOrDefault in interface JobTemplateOrBuilder
    • getLabelsOrThrow

      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;
      Specified by:
      getLabelsOrThrow in interface JobTemplateOrBuilder
    • clearLabels

      public JobTemplate.Builder clearLabels()
    • removeLabels

      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;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      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;
    • putAllLabels

      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;