Class CaseClassification.Builder (0.19.0)

public static final class CaseClassification.Builder extends GeneratedMessageV3.Builder<CaseClassification.Builder> implements CaseClassificationOrBuilder

A classification object with a product type and value.

Protobuf type google.cloud.support.v2.CaseClassification

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CaseClassification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CaseClassification.Builder
Overrides

build()

public CaseClassification build()
Returns
TypeDescription
CaseClassification

buildPartial()

public CaseClassification buildPartial()
Returns
TypeDescription
CaseClassification

clear()

public CaseClassification.Builder clear()
Returns
TypeDescription
CaseClassification.Builder
Overrides

clearDisplayName()

public CaseClassification.Builder clearDisplayName()

The display name of the classification.

string display_name = 4;

Returns
TypeDescription
CaseClassification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CaseClassification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CaseClassification.Builder
Overrides

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.

string id = 3;

Returns
TypeDescription
CaseClassification.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CaseClassification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CaseClassification.Builder
Overrides

clone()

public CaseClassification.Builder clone()
Returns
TypeDescription
CaseClassification.Builder
Overrides

getDefaultInstanceForType()

public CaseClassification getDefaultInstanceForType()
Returns
TypeDescription
CaseClassification

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the classification.

string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the classification.

string display_name = 4;

Returns
TypeDescription
ByteString

The bytes for displayName.

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.

string id = 3;

Returns
TypeDescription
String

The id.

getIdBytes()

public 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.

string id = 3;

Returns
TypeDescription
ByteString

The bytes for id.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CaseClassification other)

public CaseClassification.Builder mergeFrom(CaseClassification other)
Parameter
NameDescription
otherCaseClassification
Returns
TypeDescription
CaseClassification.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CaseClassification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CaseClassification.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CaseClassification.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CaseClassification.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CaseClassification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CaseClassification.Builder
Overrides

setDisplayName(String value)

public CaseClassification.Builder setDisplayName(String value)

The display name of the classification.

string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
CaseClassification.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public CaseClassification.Builder setDisplayNameBytes(ByteString value)

The display name of the classification.

string display_name = 4;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
CaseClassification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CaseClassification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CaseClassification.Builder
Overrides

setId(String value)

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.

string id = 3;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
CaseClassification.Builder

This builder for chaining.

setIdBytes(ByteString value)

public CaseClassification.Builder setIdBytes(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.

string id = 3;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
CaseClassification.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CaseClassification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CaseClassification.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CaseClassification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CaseClassification.Builder
Overrides