Class Case

  • All Implemented Interfaces:
    CaseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Case
    extends com.google.protobuf.GeneratedMessageV3
    implements CaseOrBuilder
     A support case.
     
    Protobuf type google.cloud.support.v2.Case
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         The resource name for the case.
         
        string name = 1;
        Specified by:
        getName in interface CaseOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name for the case.
         
        string name = 1;
        Specified by:
        getNameBytes in interface CaseOrBuilder
        Returns:
        The bytes for name.
      • getDisplayName

        public String getDisplayName()
         The short summary of the issue reported in this case.
         
        string display_name = 2;
        Specified by:
        getDisplayName in interface CaseOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         The short summary of the issue reported in this case.
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface CaseOrBuilder
        Returns:
        The bytes for displayName.
      • getDescription

        public String getDescription()
         A broad description of the issue.
         
        string description = 3;
        Specified by:
        getDescription in interface CaseOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         A broad description of the issue.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface CaseOrBuilder
        Returns:
        The bytes for description.
      • hasClassification

        public boolean hasClassification()
         The issue classification applicable to this case.
         
        .google.cloud.support.v2.CaseClassification classification = 4;
        Specified by:
        hasClassification in interface CaseOrBuilder
        Returns:
        Whether the classification field is set.
      • getClassification

        public CaseClassification getClassification()
         The issue classification applicable to this case.
         
        .google.cloud.support.v2.CaseClassification classification = 4;
        Specified by:
        getClassification in interface CaseOrBuilder
        Returns:
        The classification.
      • 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;
        Specified by:
        getTimeZone in interface CaseOrBuilder
        Returns:
        The timeZone.
      • getTimeZoneBytes

        public com.google.protobuf.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;
        Specified by:
        getTimeZoneBytes in interface CaseOrBuilder
        Returns:
        The bytes for timeZone.
      • getSubscriberEmailAddressesList

        public com.google.protobuf.ProtocolStringList getSubscriberEmailAddressesList()
         The email addresses to receive updates on this case.
         
        repeated string subscriber_email_addresses = 9;
        Specified by:
        getSubscriberEmailAddressesList in interface CaseOrBuilder
        Returns:
        A list containing the subscriberEmailAddresses.
      • getSubscriberEmailAddressesCount

        public int getSubscriberEmailAddressesCount()
         The email addresses to receive updates on this case.
         
        repeated string subscriber_email_addresses = 9;
        Specified by:
        getSubscriberEmailAddressesCount in interface CaseOrBuilder
        Returns:
        The count of subscriberEmailAddresses.
      • getSubscriberEmailAddresses

        public String getSubscriberEmailAddresses​(int index)
         The email addresses to receive updates on this case.
         
        repeated string subscriber_email_addresses = 9;
        Specified by:
        getSubscriberEmailAddresses in interface CaseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The subscriberEmailAddresses at the given index.
      • getSubscriberEmailAddressesBytes

        public com.google.protobuf.ByteString getSubscriberEmailAddressesBytes​(int index)
         The email addresses to receive updates on this case.
         
        repeated string subscriber_email_addresses = 9;
        Specified by:
        getSubscriberEmailAddressesBytes in interface CaseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the subscriberEmailAddresses at the given index.
      • 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];
        Specified by:
        getStateValue in interface CaseOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • 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];
        Specified by:
        getState in interface CaseOrBuilder
        Returns:
        The state.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time this case was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface CaseOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time this case was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface CaseOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time this case was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface CaseOrBuilder
      • 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];
        Specified by:
        hasUpdateTime in interface CaseOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time this case was last updated.
         
        .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface CaseOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time this case was last updated.
         
        .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface CaseOrBuilder
      • 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;
        Specified by:
        hasCreator in interface CaseOrBuilder
        Returns:
        Whether the creator field is set.
      • 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;
        Specified by:
        getCreator in interface CaseOrBuilder
        Returns:
        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;
        Specified by:
        getCreatorOrBuilder in interface CaseOrBuilder
      • 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;
        Specified by:
        getContactEmail in interface CaseOrBuilder
        Returns:
        The contactEmail.
      • getContactEmailBytes

        public com.google.protobuf.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;
        Specified by:
        getContactEmailBytes in interface CaseOrBuilder
        Returns:
        The bytes for contactEmail.
      • getEscalated

        public boolean getEscalated()
         Whether the case is currently escalated.
         
        bool escalated = 17;
        Specified by:
        getEscalated in interface CaseOrBuilder
        Returns:
        The escalated.
      • 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;
        Specified by:
        getTestCase in interface CaseOrBuilder
        Returns:
        The testCase.
      • 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;
        Specified by:
        getLanguageCode in interface CaseOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.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;
        Specified by:
        getLanguageCodeBytes in interface CaseOrBuilder
        Returns:
        The bytes for languageCode.
      • getPriorityValue

        public int getPriorityValue()
         The priority of this case.
         
        .google.cloud.support.v2.Case.Priority priority = 32;
        Specified by:
        getPriorityValue in interface CaseOrBuilder
        Returns:
        The enum numeric value on the wire for priority.
      • getPriority

        public Case.Priority getPriority()
         The priority of this case.
         
        .google.cloud.support.v2.Case.Priority priority = 32;
        Specified by:
        getPriority in interface CaseOrBuilder
        Returns:
        The priority.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Case parseFrom​(ByteBuffer data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Case parseFrom​(ByteBuffer data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Case parseFrom​(com.google.protobuf.ByteString data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Case parseFrom​(com.google.protobuf.ByteString data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Case parseFrom​(byte[] data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Case parseFrom​(byte[] data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Case parseFrom​(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Case.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Case.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Case.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Case getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Case> parser()
      • getParserForType

        public com.google.protobuf.Parser<Case> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Case getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder