Class Template.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Template.Builder>
com.google.cloud.modelarmor.v1beta.Template.Builder
All Implemented Interfaces:
TemplateOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Template

public static final class Template.Builder extends com.google.protobuf.GeneratedMessage.Builder<Template.Builder> implements TemplateOrBuilder
 Message describing Template resource
 
Protobuf type google.cloud.modelarmor.v1beta.Template
  • 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<Template.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public Template.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<Template.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<Template.Builder>
    • getDefaultInstanceForType

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

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

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

      public Template.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<Template.Builder>
    • mergeFrom

      public Template.Builder mergeFrom(Template other)
    • isInitialized

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

      public Template.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<Template.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface TemplateOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface TemplateOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Template.Builder setName(String value)
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Template.Builder clearName()
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Template.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface TemplateOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface TemplateOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Template.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Template.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Template.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Template.Builder clearCreateTime()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface TemplateOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface TemplateOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface TemplateOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Template.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Template.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Template.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Template.Builder clearUpdateTime()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface TemplateOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: TemplateOrBuilder
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface TemplateOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface TemplateOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface TemplateOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface TemplateOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface TemplateOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface TemplateOrBuilder
    • clearLabels

      public Template.Builder clearLabels()
    • removeLabels

      public Template.Builder removeLabels(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public Template.Builder putLabels(String key, String value)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Template.Builder putAllLabels(Map<String,String> values)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • hasFilterConfig

      public boolean hasFilterConfig()
       Required. filter configuration for this template
       
      .google.cloud.modelarmor.v1beta.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFilterConfig in interface TemplateOrBuilder
      Returns:
      Whether the filterConfig field is set.
    • getFilterConfig

      public FilterConfig getFilterConfig()
       Required. filter configuration for this template
       
      .google.cloud.modelarmor.v1beta.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFilterConfig in interface TemplateOrBuilder
      Returns:
      The filterConfig.
    • setFilterConfig

      public Template.Builder setFilterConfig(FilterConfig value)
       Required. filter configuration for this template
       
      .google.cloud.modelarmor.v1beta.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];
    • setFilterConfig

      public Template.Builder setFilterConfig(FilterConfig.Builder builderForValue)
       Required. filter configuration for this template
       
      .google.cloud.modelarmor.v1beta.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];
    • mergeFilterConfig

      public Template.Builder mergeFilterConfig(FilterConfig value)
       Required. filter configuration for this template
       
      .google.cloud.modelarmor.v1beta.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];
    • clearFilterConfig

      public Template.Builder clearFilterConfig()
       Required. filter configuration for this template
       
      .google.cloud.modelarmor.v1beta.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];
    • getFilterConfigBuilder

      public FilterConfig.Builder getFilterConfigBuilder()
       Required. filter configuration for this template
       
      .google.cloud.modelarmor.v1beta.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];
    • getFilterConfigOrBuilder

      public FilterConfigOrBuilder getFilterConfigOrBuilder()
       Required. filter configuration for this template
       
      .google.cloud.modelarmor.v1beta.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFilterConfigOrBuilder in interface TemplateOrBuilder
    • hasTemplateMetadata

      public boolean hasTemplateMetadata()
       Optional. metadata for this template
       
      .google.cloud.modelarmor.v1beta.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTemplateMetadata in interface TemplateOrBuilder
      Returns:
      Whether the templateMetadata field is set.
    • getTemplateMetadata

      public Template.TemplateMetadata getTemplateMetadata()
       Optional. metadata for this template
       
      .google.cloud.modelarmor.v1beta.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTemplateMetadata in interface TemplateOrBuilder
      Returns:
      The templateMetadata.
    • setTemplateMetadata

      public Template.Builder setTemplateMetadata(Template.TemplateMetadata value)
       Optional. metadata for this template
       
      .google.cloud.modelarmor.v1beta.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setTemplateMetadata

      public Template.Builder setTemplateMetadata(Template.TemplateMetadata.Builder builderForValue)
       Optional. metadata for this template
       
      .google.cloud.modelarmor.v1beta.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTemplateMetadata

      public Template.Builder mergeTemplateMetadata(Template.TemplateMetadata value)
       Optional. metadata for this template
       
      .google.cloud.modelarmor.v1beta.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearTemplateMetadata

      public Template.Builder clearTemplateMetadata()
       Optional. metadata for this template
       
      .google.cloud.modelarmor.v1beta.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getTemplateMetadataBuilder

      public Template.TemplateMetadata.Builder getTemplateMetadataBuilder()
       Optional. metadata for this template
       
      .google.cloud.modelarmor.v1beta.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getTemplateMetadataOrBuilder

      public Template.TemplateMetadataOrBuilder getTemplateMetadataOrBuilder()
       Optional. metadata for this template
       
      .google.cloud.modelarmor.v1beta.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTemplateMetadataOrBuilder in interface TemplateOrBuilder