Class Actor.Builder (0.39.0)

public static final class Actor.Builder extends 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

Implements

ActorOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Actor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Actor.Builder
Overrides

build()

public Actor build()
Returns
Type Description
Actor

buildPartial()

public Actor buildPartial()
Returns
Type Description
Actor

clear()

public Actor.Builder clear()
Returns
Type Description
Actor.Builder
Overrides

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
Type Description
Actor.Builder

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
Type Description
Actor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Actor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Actor.Builder
Overrides

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
Type Description
Actor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Actor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Actor.Builder
Overrides

clone()

public Actor.Builder clone()
Returns
Type Description
Actor.Builder
Overrides

getDefaultInstanceForType()

public Actor getDefaultInstanceForType()
Returns
Type Description
Actor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public 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;

Returns
Type Description
ByteString

The bytes for displayName.

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;

Returns
Type Description
String

The email.

getEmailBytes()

public 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;

Returns
Type Description
ByteString

The bytes for email.

getGoogleSupport()

public boolean getGoogleSupport()

Output only. Whether the actor is a Google support actor.

bool google_support = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The googleSupport.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Actor other)

public Actor.Builder mergeFrom(Actor other)
Parameter
Name Description
other Actor
Returns
Type Description
Actor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Actor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Actor.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Actor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Actor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Actor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Actor.Builder
Overrides

setDisplayName(String value)

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;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Actor.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Actor.Builder setDisplayNameBytes(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;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Actor.Builder

This builder for chaining.

setEmail(String value)

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;

Parameter
Name Description
value String

The email to set.

Returns
Type Description
Actor.Builder

This builder for chaining.

setEmailBytes(ByteString value)

public Actor.Builder setEmailBytes(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;

Parameter
Name Description
value ByteString

The bytes for email to set.

Returns
Type Description
Actor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Actor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Actor.Builder
Overrides

setGoogleSupport(boolean value)

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];

Parameter
Name Description
value boolean

The googleSupport to set.

Returns
Type Description
Actor.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Actor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Actor.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Actor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Actor.Builder
Overrides