Class Case (0.37.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
Type Description
int

CONTACT_EMAIL_FIELD_NUMBER

public static final int CONTACT_EMAIL_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

CREATOR_FIELD_NUMBER

public static final int CREATOR_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ESCALATED_FIELD_NUMBER

public static final int ESCALATED_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PRIORITY_FIELD_NUMBER

public static final int PRIORITY_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

SUBSCRIBER_EMAIL_ADDRESSES_FIELD_NUMBER

public static final int SUBSCRIBER_EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

TEST_CASE_FIELD_NUMBER

public static final int TEST_CASE_FIELD_NUMBER
Field Value
Type Description
int

TIME_ZONE_FIELD_NUMBER

public static final int TIME_ZONE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Case getDefaultInstance()
Returns
Type Description
Case

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Case.Builder newBuilder()
Returns
Type Description
Case.Builder

newBuilder(Case prototype)

public static Case.Builder newBuilder(Case prototype)
Parameter
Name Description
prototype Case
Returns
Type Description
Case.Builder

parseDelimitedFrom(InputStream input)

public static Case parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Case
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Case parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Case
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Case parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Case
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Case
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Case parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Case
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Case
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Case parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Case
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Case
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Case parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Case
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Case
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Case parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Case
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Case parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Case
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Case> parser()
Returns
Type Description
Parser<Case>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getClassification()

public CaseClassification getClassification()

The issue classification applicable to this case.

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

Returns
Type Description
CaseClassification

The classification.

getClassificationOrBuilder()

public CaseClassificationOrBuilder getClassificationOrBuilder()

The issue classification applicable to this case.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ActorOrBuilder

getDefaultInstanceForType()

public Case getDefaultInstanceForType()
Returns
Type Description
Case

getDescription()

public String getDescription()

A broad description of the issue.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A broad description of the issue.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDisplayName()

public String getDisplayName()

The short summary of the issue reported in this case.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The short summary of the issue reported in this case.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getEscalated()

public boolean getEscalated()

Whether the case is currently escalated.

bool escalated = 17;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for languageCode.

getName()

public String getName()

The resource name for the case.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name for the case.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Case> getParserForType()
Returns
Type Description
Parser<Case>
Overrides

getPriority()

public Case.Priority getPriority()

The priority of this case.

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

Returns
Type Description
Case.Priority

The priority.

getPriorityValue()

public int getPriorityValue()

The priority of this case.

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

Returns
Type Description
int

The enum numeric value on the wire for priority.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

hasClassification()

public boolean hasClassification()

The issue classification applicable to this case.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Case.Builder newBuilderForType()
Returns
Type Description
Case.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Case.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Case.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Case.Builder toBuilder()
Returns
Type Description
Case.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException