Package com.google.cloud.support.v2beta
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()A display name for the classification.clearId()The unique ID for a classification.The full product the classification corresponds to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA display name for the classification.com.google.protobuf.ByteStringA display name for the classification.getId()The unique ID for a classification.com.google.protobuf.ByteStringThe unique ID for a classification.The full product the classification corresponds to.The full product the classification corresponds to.The full product the classification corresponds to.booleanThe full product the classification corresponds to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CaseClassification other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeProduct(Product value) The full product the classification corresponds to.setDisplayName(String value) A display name for the classification.setDisplayNameBytes(com.google.protobuf.ByteString value) A display name for the classification.The unique ID for a classification.setIdBytes(com.google.protobuf.ByteString value) The unique ID for a classification.setProduct(Product value) The full product the classification corresponds to.setProduct(Product.Builder builderForValue) The full product the classification corresponds to.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CaseClassification.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CaseClassification.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CaseClassification.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CaseClassification.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CaseClassification.Builder>- Throws:
IOException
-
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:
getIdin interfaceCaseClassificationOrBuilder- 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:
getIdBytesin interfaceCaseClassificationOrBuilder- Returns:
- The bytes for id.
-
setId
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
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
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
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:
getDisplayNamein interfaceCaseClassificationOrBuilder- 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:
getDisplayNameBytesin interfaceCaseClassificationOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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
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
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:
hasProductin interfaceCaseClassificationOrBuilder- Returns:
- Whether the product field is set.
-
getProduct
The full product the classification corresponds to.
.google.cloud.support.v2beta.Product product = 10;- Specified by:
getProductin interfaceCaseClassificationOrBuilder- Returns:
- The product.
-
setProduct
The full product the classification corresponds to.
.google.cloud.support.v2beta.Product product = 10; -
setProduct
The full product the classification corresponds to.
.google.cloud.support.v2beta.Product product = 10; -
mergeProduct
The full product the classification corresponds to.
.google.cloud.support.v2beta.Product product = 10; -
clearProduct
The full product the classification corresponds to.
.google.cloud.support.v2beta.Product product = 10; -
getProductBuilder
The full product the classification corresponds to.
.google.cloud.support.v2beta.Product product = 10; -
getProductOrBuilder
The full product the classification corresponds to.
.google.cloud.support.v2beta.Product product = 10;- Specified by:
getProductOrBuilderin interfaceCaseClassificationOrBuilder
-