Class Actor.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Actor.Builder>
com.google.cloud.support.v2beta.Actor.Builder
All Implemented Interfaces:
ActorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Actor

public static final class Actor.Builder extends com.google.protobuf.GeneratedMessage.Builder<Actor.Builder> implements ActorOrBuilder
 An Actor represents an entity that performed an action. For example, an actor
 could be a user who posted a comment on a support case, a user who
 uploaded an attachment, or a service account that created a support case.
 
Protobuf type google.cloud.support.v2beta.Actor
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The name to display for the actor.
    Deprecated.
    google.cloud.support.v2beta.Actor.email is deprecated.
    Output only.
    Output only.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The name to display for the actor.
    com.google.protobuf.ByteString
    The name to display for the actor.
    Deprecated.
    google.cloud.support.v2beta.Actor.email is deprecated.
    com.google.protobuf.ByteString
    Deprecated.
    google.cloud.support.v2beta.Actor.email is deprecated.
    boolean
    Output only.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The name to display for the actor.
    setDisplayNameBytes(com.google.protobuf.ByteString value)
    The name to display for the actor.
    Deprecated.
    google.cloud.support.v2beta.Actor.email is deprecated.
    setEmailBytes(com.google.protobuf.ByteString value)
    Deprecated.
    google.cloud.support.v2beta.Actor.email is deprecated.
    setGoogleSupport(boolean value)
    Output only.
    Output only.
    setUsernameBytes(com.google.protobuf.ByteString value)
    Output only.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Actor.Builder>
    • clear

      public Actor.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Actor.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Actor.Builder>
    • getDefaultInstanceForType

      public Actor getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Actor build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Actor buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Actor.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Actor.Builder>
    • mergeFrom

      public Actor.Builder mergeFrom(Actor other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Actor.Builder>
    • mergeFrom

      public Actor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Actor.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       The name to display for the actor. If not provided, it is inferred from
       credentials supplied during case creation. When an email is provided, a
       display name must also be provided. This will be obfuscated if the user
       is a Google Support agent.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface ActorOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The name to display for the actor. If not provided, it is inferred from
       credentials supplied during case creation. When an email is provided, a
       display name must also be provided. This will be obfuscated if the user
       is a Google Support agent.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface ActorOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Actor.Builder setDisplayName(String value)
       The name to display for the actor. If not provided, it is inferred from
       credentials supplied during case creation. When an email is provided, a
       display name must also be provided. This will be obfuscated if the user
       is a Google Support agent.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Actor.Builder clearDisplayName()
       The name to display for the actor. If not provided, it is inferred from
       credentials supplied during case creation. When an email is provided, a
       display name must also be provided. This will be obfuscated if the user
       is a Google Support agent.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Actor.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The name to display for the actor. If not provided, it is inferred from
       credentials supplied during case creation. When an email is provided, a
       display name must also be provided. This will be obfuscated if the user
       is a Google Support agent.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getEmail

      @Deprecated public String getEmail()
      Deprecated.
      google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44
       The email address of the actor. If not provided, it is inferred from the
       credentials supplied during case creation. When a name is provided, an
       email must also be provided. If the user is a Google Support agent, this is
       obfuscated.
      
       This field is deprecated. Use `username` instead.
       
      string email = 2 [deprecated = true];
      Specified by:
      getEmail in interface ActorOrBuilder
      Returns:
      The email.
    • getEmailBytes

      @Deprecated public com.google.protobuf.ByteString getEmailBytes()
      Deprecated.
      google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44
       The email address of the actor. If not provided, it is inferred from the
       credentials supplied during case creation. When a name is provided, an
       email must also be provided. If the user is a Google Support agent, this is
       obfuscated.
      
       This field is deprecated. Use `username` instead.
       
      string email = 2 [deprecated = true];
      Specified by:
      getEmailBytes in interface ActorOrBuilder
      Returns:
      The bytes for email.
    • setEmail

      @Deprecated public Actor.Builder setEmail(String value)
      Deprecated.
      google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44
       The email address of the actor. If not provided, it is inferred from the
       credentials supplied during case creation. When a name is provided, an
       email must also be provided. If the user is a Google Support agent, this is
       obfuscated.
      
       This field is deprecated. Use `username` instead.
       
      string email = 2 [deprecated = true];
      Parameters:
      value - The email to set.
      Returns:
      This builder for chaining.
    • clearEmail

      @Deprecated public Actor.Builder clearEmail()
      Deprecated.
      google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44
       The email address of the actor. If not provided, it is inferred from the
       credentials supplied during case creation. When a name is provided, an
       email must also be provided. If the user is a Google Support agent, this is
       obfuscated.
      
       This field is deprecated. Use `username` instead.
       
      string email = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • setEmailBytes

      @Deprecated public Actor.Builder setEmailBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44
       The email address of the actor. If not provided, it is inferred from the
       credentials supplied during case creation. When a name is provided, an
       email must also be provided. If the user is a Google Support agent, this is
       obfuscated.
      
       This field is deprecated. Use `username` instead.
       
      string email = 2 [deprecated = true];
      Parameters:
      value - The bytes for email to set.
      Returns:
      This builder for chaining.
    • getGoogleSupport

      public boolean getGoogleSupport()
       Output only. Whether the actor is a Google support actor.
       
      bool google_support = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGoogleSupport in interface ActorOrBuilder
      Returns:
      The googleSupport.
    • setGoogleSupport

      public Actor.Builder setGoogleSupport(boolean value)
       Output only. Whether the actor is a Google support actor.
       
      bool google_support = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The googleSupport to set.
      Returns:
      This builder for chaining.
    • clearGoogleSupport

      public Actor.Builder clearGoogleSupport()
       Output only. Whether the actor is a Google support actor.
       
      bool google_support = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getUsername

      public String getUsername()
       Output only. The username of the actor. It may look like an email or other
       format provided by the identity provider. If not provided, it is inferred
       from the credentials supplied. When a name is provided, a username must
       also be provided. If the user is a Google Support agent, this will not be
       set.
       
      string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUsername in interface ActorOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
       Output only. The username of the actor. It may look like an email or other
       format provided by the identity provider. If not provided, it is inferred
       from the credentials supplied. When a name is provided, a username must
       also be provided. If the user is a Google Support agent, this will not be
       set.
       
      string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUsernameBytes in interface ActorOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      public Actor.Builder setUsername(String value)
       Output only. The username of the actor. It may look like an email or other
       format provided by the identity provider. If not provided, it is inferred
       from the credentials supplied. When a name is provided, a username must
       also be provided. If the user is a Google Support agent, this will not be
       set.
       
      string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      public Actor.Builder clearUsername()
       Output only. The username of the actor. It may look like an email or other
       format provided by the identity provider. If not provided, it is inferred
       from the credentials supplied. When a name is provided, a username must
       also be provided. If the user is a Google Support agent, this will not be
       set.
       
      string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public Actor.Builder setUsernameBytes(com.google.protobuf.ByteString value)
       Output only. The username of the actor. It may look like an email or other
       format provided by the identity provider. If not provided, it is inferred
       from the credentials supplied. When a name is provided, a username must
       also be provided. If the user is a Google Support agent, this will not be
       set.
       
      string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.