Class Case (0.21.0)

public final class Case extends GeneratedMessageV3 implements CaseOrBuilder

A support case.

Protobuf type google.cloud.support.v2.Case

Implements

CaseOrBuilder

Static Fields

CLASSIFICATION_FIELD_NUMBER

public static final int CLASSIFICATION_FIELD_NUMBER
Field Value
TypeDescription
int

CONTACT_EMAIL_FIELD_NUMBER

public static final int CONTACT_EMAIL_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

CREATOR_FIELD_NUMBER

public static final int CREATOR_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ESCALATED_FIELD_NUMBER

public static final int ESCALATED_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PRIORITY_FIELD_NUMBER

public static final int PRIORITY_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

SUBSCRIBER_EMAIL_ADDRESSES_FIELD_NUMBER

public static final int SUBSCRIBER_EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
TypeDescription
int

TEST_CASE_FIELD_NUMBER

public static final int TEST_CASE_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_ZONE_FIELD_NUMBER

public static final int TIME_ZONE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Case getDefaultInstance()
Returns
TypeDescription
Case

getDescriptor()

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

newBuilder()

public static Case.Builder newBuilder()
Returns
TypeDescription
Case.Builder

newBuilder(Case prototype)

public static Case.Builder newBuilder(Case prototype)
Parameter
NameDescription
prototypeCase
Returns
TypeDescription
Case.Builder

parseDelimitedFrom(InputStream input)

public static Case parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Case
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Case parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Case
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Case parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Case
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Case
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Case parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Case
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Case
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Case parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Case
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Case
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Case parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Case
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Case
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Case parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Case
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Case
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Case> parser()
Returns
TypeDescription
Parser<Case>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getClassification()

public CaseClassification getClassification()

The issue classification applicable to this case.

.google.cloud.support.v2.CaseClassification classification = 4;

Returns
TypeDescription
CaseClassification

The classification.

getClassificationOrBuilder()

public CaseClassificationOrBuilder getClassificationOrBuilder()

The issue classification applicable to this case.

.google.cloud.support.v2.CaseClassification classification = 4;

Returns
TypeDescription
CaseClassificationOrBuilder

getContactEmail()

public String getContactEmail()

A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.

string contact_email = 35;

Returns
TypeDescription
String

The contactEmail.

getContactEmailBytes()

public ByteString getContactEmailBytes()

A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.

string contact_email = 35;

Returns
TypeDescription
ByteString

The bytes for contactEmail.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time this case was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time this case was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getCreator()

public Actor getCreator()

The user who created the case.

Note: The name and email will be obfuscated if the case was created by Google Support.

.google.cloud.support.v2.Actor creator = 15;

Returns
TypeDescription
Actor

The creator.

getCreatorOrBuilder()

public ActorOrBuilder getCreatorOrBuilder()

The user who created the case.

Note: The name and email will be obfuscated if the case was created by Google Support.

.google.cloud.support.v2.Actor creator = 15;

Returns
TypeDescription
ActorOrBuilder

getDefaultInstanceForType()

public Case getDefaultInstanceForType()
Returns
TypeDescription
Case

getDescription()

public String getDescription()

A broad description of the issue.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A broad description of the issue.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDisplayName()

public String getDisplayName()

The short summary of the issue reported in this case.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The short summary of the issue reported in this case.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEscalated()

public boolean getEscalated()

Whether the case is currently escalated.

bool escalated = 17;

Returns
TypeDescription
boolean

The escalated.

getLanguageCode()

public String getLanguageCode()

The language the user has requested to receive support in. This should be a BCP 47 language code (e.g., "en", "zh-CN", "zh-TW", "ja", "ko"). If no language or an unsupported language is specified, this field defaults to English (en).

Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours

string language_code = 23;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

The language the user has requested to receive support in. This should be a BCP 47 language code (e.g., "en", "zh-CN", "zh-TW", "ja", "ko"). If no language or an unsupported language is specified, this field defaults to English (en).

Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours

string language_code = 23;

Returns
TypeDescription
ByteString

The bytes for languageCode.

getName()

public String getName()

The resource name for the case.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name for the case.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Case> getParserForType()
Returns
TypeDescription
Parser<Case>
Overrides

getPriority()

public Case.Priority getPriority()

The priority of this case.

.google.cloud.support.v2.Case.Priority priority = 32;

Returns
TypeDescription
Case.Priority

The priority.

getPriorityValue()

public int getPriorityValue()

The priority of this case.

.google.cloud.support.v2.Case.Priority priority = 32;

Returns
TypeDescription
int

The enum numeric value on the wire for priority.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public Case.State getState()

Output only. The current status of the support case.

.google.cloud.support.v2.Case.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Case.State

The state.

getStateValue()

public int getStateValue()

Output only. The current status of the support case.

.google.cloud.support.v2.Case.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getSubscriberEmailAddresses(int index)

public String getSubscriberEmailAddresses(int index)

The email addresses to receive updates on this case.

repeated string subscriber_email_addresses = 9;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The subscriberEmailAddresses at the given index.

getSubscriberEmailAddressesBytes(int index)

public ByteString getSubscriberEmailAddressesBytes(int index)

The email addresses to receive updates on this case.

repeated string subscriber_email_addresses = 9;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the subscriberEmailAddresses at the given index.

getSubscriberEmailAddressesCount()

public int getSubscriberEmailAddressesCount()

The email addresses to receive updates on this case.

repeated string subscriber_email_addresses = 9;

Returns
TypeDescription
int

The count of subscriberEmailAddresses.

getSubscriberEmailAddressesList()

public ProtocolStringList getSubscriberEmailAddressesList()

The email addresses to receive updates on this case.

repeated string subscriber_email_addresses = 9;

Returns
TypeDescription
ProtocolStringList

A list containing the subscriberEmailAddresses.

getTestCase()

public boolean getTestCase()

Whether this case was created for internal API testing and should not be acted on by the support team.

bool test_case = 19;

Returns
TypeDescription
boolean

The testCase.

getTimeZone()

public String getTimeZone()

The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.

string time_zone = 8;

Returns
TypeDescription
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.

string time_zone = 8;

Returns
TypeDescription
ByteString

The bytes for timeZone.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time this case was last updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time this case was last updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasClassification()

public boolean hasClassification()

The issue classification applicable to this case.

.google.cloud.support.v2.CaseClassification classification = 4;

Returns
TypeDescription
boolean

Whether the classification field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time this case was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasCreator()

public boolean hasCreator()

The user who created the case.

Note: The name and email will be obfuscated if the case was created by Google Support.

.google.cloud.support.v2.Actor creator = 15;

Returns
TypeDescription
boolean

Whether the creator field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time this case was last updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Case.Builder newBuilderForType()
Returns
TypeDescription
Case.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Case.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Case.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Case.Builder toBuilder()
Returns
TypeDescription
Case.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException