Class Actor.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Actor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Actor.Builder
Overrides

build()

public Actor build()
Returns
TypeDescription
Actor

buildPartial()

public Actor buildPartial()
Returns
TypeDescription
Actor

clear()

public Actor.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Actor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Actor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Actor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Actor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Actor.Builder
Overrides

clone()

public Actor.Builder clone()
Returns
TypeDescription
Actor.Builder
Overrides

getDefaultInstanceForType()

public Actor getDefaultInstanceForType()
Returns
TypeDescription
Actor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The googleSupport.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Actor other)

public Actor.Builder mergeFrom(Actor other)
Parameter
NameDescription
otherActor
Returns
TypeDescription
Actor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Actor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Actor.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Actor.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Actor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Actor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueString

The email to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for email to set.

Returns
TypeDescription
Actor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Actor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The googleSupport to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Actor.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Actor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Actor.Builder
Overrides