Class CaseClassification.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CaseClassification.Builder>
com.google.cloud.support.v2beta.CaseClassification.Builder
All Implemented Interfaces:
CaseClassificationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CaseClassification

public static final class CaseClassification.Builder extends com.google.protobuf.GeneratedMessage.Builder<CaseClassification.Builder> implements CaseClassificationOrBuilder
 A Case Classification represents the topic that a case is about. It's very
 important to use accurate classifications, because they're
 used to route your cases to specialists who can help you.

 A classification always has an ID that is its unique identifier.
 A valid ID is required when creating a case.
 
Protobuf type google.cloud.support.v2beta.CaseClassification
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CaseClassification.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<CaseClassification.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<CaseClassification.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public CaseClassification.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<CaseClassification.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The unique ID for a classification. Must be specified for case creation.
      
       To retrieve valid classification IDs for case creation, use
       `caseClassifications.search`.
      
       Classification IDs returned by `caseClassifications.search` are guaranteed
       to be valid for at least 6 months. If a given classification is
       deactiveated, it will immediately stop being returned. After 6 months,
       `case.create` requests using the classification ID will fail.
       
      string id = 3;
      Specified by:
      getId in interface CaseClassificationOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The unique ID for a classification. Must be specified for case creation.
      
       To retrieve valid classification IDs for case creation, use
       `caseClassifications.search`.
      
       Classification IDs returned by `caseClassifications.search` are guaranteed
       to be valid for at least 6 months. If a given classification is
       deactiveated, it will immediately stop being returned. After 6 months,
       `case.create` requests using the classification ID will fail.
       
      string id = 3;
      Specified by:
      getIdBytes in interface CaseClassificationOrBuilder
      Returns:
      The bytes for id.
    • setId

      public CaseClassification.Builder setId(String value)
       The unique ID for a classification. Must be specified for case creation.
      
       To retrieve valid classification IDs for case creation, use
       `caseClassifications.search`.
      
       Classification IDs returned by `caseClassifications.search` are guaranteed
       to be valid for at least 6 months. If a given classification is
       deactiveated, it will immediately stop being returned. After 6 months,
       `case.create` requests using the classification ID will fail.
       
      string id = 3;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public CaseClassification.Builder clearId()
       The unique ID for a classification. Must be specified for case creation.
      
       To retrieve valid classification IDs for case creation, use
       `caseClassifications.search`.
      
       Classification IDs returned by `caseClassifications.search` are guaranteed
       to be valid for at least 6 months. If a given classification is
       deactiveated, it will immediately stop being returned. After 6 months,
       `case.create` requests using the classification ID will fail.
       
      string id = 3;
      Returns:
      This builder for chaining.
    • setIdBytes

      public CaseClassification.Builder setIdBytes(com.google.protobuf.ByteString value)
       The unique ID for a classification. Must be specified for case creation.
      
       To retrieve valid classification IDs for case creation, use
       `caseClassifications.search`.
      
       Classification IDs returned by `caseClassifications.search` are guaranteed
       to be valid for at least 6 months. If a given classification is
       deactiveated, it will immediately stop being returned. After 6 months,
       `case.create` requests using the classification ID will fail.
       
      string id = 3;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       A display name for the classification.
      
       The display name is not static and can change. To uniquely and consistently
       identify classifications, use the `CaseClassification.id` field.
       
      string display_name = 4;
      Specified by:
      getDisplayName in interface CaseClassificationOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       A display name for the classification.
      
       The display name is not static and can change. To uniquely and consistently
       identify classifications, use the `CaseClassification.id` field.
       
      string display_name = 4;
      Specified by:
      getDisplayNameBytes in interface CaseClassificationOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public CaseClassification.Builder setDisplayName(String value)
       A display name for the classification.
      
       The display name is not static and can change. To uniquely and consistently
       identify classifications, use the `CaseClassification.id` field.
       
      string display_name = 4;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public CaseClassification.Builder clearDisplayName()
       A display name for the classification.
      
       The display name is not static and can change. To uniquely and consistently
       identify classifications, use the `CaseClassification.id` field.
       
      string display_name = 4;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public CaseClassification.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       A display name for the classification.
      
       The display name is not static and can change. To uniquely and consistently
       identify classifications, use the `CaseClassification.id` field.
       
      string display_name = 4;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasProduct

      public boolean hasProduct()
       The full product the classification corresponds to.
       
      .google.cloud.support.v2beta.Product product = 10;
      Specified by:
      hasProduct in interface CaseClassificationOrBuilder
      Returns:
      Whether the product field is set.
    • getProduct

      public Product getProduct()
       The full product the classification corresponds to.
       
      .google.cloud.support.v2beta.Product product = 10;
      Specified by:
      getProduct in interface CaseClassificationOrBuilder
      Returns:
      The product.
    • setProduct

      public CaseClassification.Builder setProduct(Product value)
       The full product the classification corresponds to.
       
      .google.cloud.support.v2beta.Product product = 10;
    • setProduct

      public CaseClassification.Builder setProduct(Product.Builder builderForValue)
       The full product the classification corresponds to.
       
      .google.cloud.support.v2beta.Product product = 10;
    • mergeProduct

      public CaseClassification.Builder mergeProduct(Product value)
       The full product the classification corresponds to.
       
      .google.cloud.support.v2beta.Product product = 10;
    • clearProduct

      public CaseClassification.Builder clearProduct()
       The full product the classification corresponds to.
       
      .google.cloud.support.v2beta.Product product = 10;
    • getProductBuilder

      public Product.Builder getProductBuilder()
       The full product the classification corresponds to.
       
      .google.cloud.support.v2beta.Product product = 10;
    • getProductOrBuilder

      public ProductOrBuilder getProductOrBuilder()
       The full product the classification corresponds to.
       
      .google.cloud.support.v2beta.Product product = 10;
      Specified by:
      getProductOrBuilder in interface CaseClassificationOrBuilder