Package com.google.cloud.support.v2beta
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 TypeMethodDescriptionbuild()clear()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.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name to display for the actor.com.google.protobuf.ByteStringThe name to display for the actor.getEmail()Deprecated.google.cloud.support.v2beta.Actor.email is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.support.v2beta.Actor.email is deprecated.booleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDisplayName(String value) 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.setUsername(String value) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Actor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Actor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Actor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Actor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Actor.Builder>- Throws:
IOException
-
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:
getDisplayNamein interfaceActorOrBuilder- 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:
getDisplayNameBytesin interfaceActorOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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
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
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.google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44The 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:
getEmailin interfaceActorOrBuilder- Returns:
- The email.
-
getEmailBytes
Deprecated.google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44The 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:
getEmailBytesin interfaceActorOrBuilder- Returns:
- The bytes for email.
-
setEmail
Deprecated.google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44The 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.google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44The 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.google.cloud.support.v2beta.Actor.email is deprecated. See google/cloud/support/v2beta/actor.proto;l=44The 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:
getGoogleSupportin interfaceActorOrBuilder- Returns:
- The googleSupport.
-
setGoogleSupport
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
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
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:
getUsernamein interfaceActorOrBuilder- 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:
getUsernameBytesin interfaceActorOrBuilder- Returns:
- The bytes for username.
-
setUsername
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
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
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.
-