Class 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.GeneratedMessageV3.Builder<Actor.Builder>
    implements ActorOrBuilder
     An object containing information about the effective user and
     authenticated principal responsible for an action.
     
    Protobuf type google.cloud.support.v2.Actor
    • Method Detail

      • 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.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Actor.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Actor.Builder>
      • setField

        public Actor.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                      Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Actor.Builder>
      • clearField

        public Actor.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Actor.Builder>
      • clearOneof

        public Actor.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Actor.Builder>
      • setRepeatedField

        public Actor.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              int index,
                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Actor.Builder>
      • addRepeatedField

        public Actor.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Actor.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public String getEmail()
         The email address of the actor. If not provided, it is inferred from
         credentials supplied during case creation. If the authenticated principal
         does not have an email address, one must be provided. When a name is
         provided, an email must also be provided. This will be obfuscated if the
         user is a Google Support agent.
         
        string email = 2;
        Specified by:
        getEmail in interface ActorOrBuilder
        Returns:
        The email.
      • getEmailBytes

        public com.google.protobuf.ByteString getEmailBytes()
         The email address of the actor. If not provided, it is inferred from
         credentials supplied during case creation. If the authenticated principal
         does not have an email address, one must be provided. When a name is
         provided, an email must also be provided. This will be obfuscated if the
         user is a Google Support agent.
         
        string email = 2;
        Specified by:
        getEmailBytes in interface ActorOrBuilder
        Returns:
        The bytes for email.
      • setEmail

        public Actor.Builder setEmail​(String value)
         The email address of the actor. If not provided, it is inferred from
         credentials supplied during case creation. If the authenticated principal
         does not have an email address, one must be provided. When a name is
         provided, an email must also be provided. This will be obfuscated if the
         user is a Google Support agent.
         
        string email = 2;
        Parameters:
        value - The email to set.
        Returns:
        This builder for chaining.
      • clearEmail

        public Actor.Builder clearEmail()
         The email address of the actor. If not provided, it is inferred from
         credentials supplied during case creation. If the authenticated principal
         does not have an email address, one must be provided. When a name is
         provided, an email must also be provided. This will be obfuscated if the
         user is a Google Support agent.
         
        string email = 2;
        Returns:
        This builder for chaining.
      • setEmailBytes

        public Actor.Builder setEmailBytes​(com.google.protobuf.ByteString value)
         The email address of the actor. If not provided, it is inferred from
         credentials supplied during case creation. If the authenticated principal
         does not have an email address, one must be provided. When a name is
         provided, an email must also be provided. This will be obfuscated if the
         user is a Google Support agent.
         
        string email = 2;
        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.
      • setUnknownFields

        public final Actor.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Actor.Builder>
      • mergeUnknownFields

        public final Actor.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Actor.Builder>