Class CreateUserLinkRequest.Builder (0.38.0)

public static final class CreateUserLinkRequest.Builder extends GeneratedMessageV3.Builder<CreateUserLinkRequest.Builder> implements CreateUserLinkRequestOrBuilder

Request message for CreateUserLink RPC.

Users can have multiple email addresses associated with their Google account, and one of these email addresses is the "primary" email address. Any of the email addresses associated with a Google account may be used for a new UserLink, but the returned UserLink will always contain the "primary" email address. As a result, the input and output email address for this request may differ.

Protobuf type google.analytics.admin.v1alpha.CreateUserLinkRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateUserLinkRequest build()
Returns
TypeDescription
CreateUserLinkRequest

buildPartial()

public CreateUserLinkRequest buildPartial()
Returns
TypeDescription
CreateUserLinkRequest

clear()

public CreateUserLinkRequest.Builder clear()
Returns
TypeDescription
CreateUserLinkRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateUserLinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateUserLinkRequest.Builder
Overrides

clearNotifyNewUser()

public CreateUserLinkRequest.Builder clearNotifyNewUser()

Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.

bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateUserLinkRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateUserLinkRequest.Builder clearParent()

Required. Example format: accounts/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateUserLinkRequest.Builder

This builder for chaining.

public CreateUserLinkRequest.Builder clearUserLink()

Required. The user link to create.

.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateUserLinkRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateUserLinkRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateUserLinkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNotifyNewUser()

public boolean getNotifyNewUser()

Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.

bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The notifyNewUser.

getParent()

public String getParent()

Required. Example format: accounts/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Example format: accounts/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

public UserLink getUserLink()

Required. The user link to create.

.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UserLink

The userLink.

getUserLinkBuilder()

public UserLink.Builder getUserLinkBuilder()

Required. The user link to create.

.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UserLink.Builder

getUserLinkOrBuilder()

public UserLinkOrBuilder getUserLinkOrBuilder()

Required. The user link to create.

.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UserLinkOrBuilder
public boolean hasUserLink()

Required. The user link to create.

.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the userLink field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateUserLinkRequest other)

public CreateUserLinkRequest.Builder mergeFrom(CreateUserLinkRequest other)
Parameter
NameDescription
otherCreateUserLinkRequest
Returns
TypeDescription
CreateUserLinkRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateUserLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateUserLinkRequest.Builder
Overrides
public CreateUserLinkRequest.Builder mergeUserLink(UserLink value)

Required. The user link to create.

.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueUserLink
Returns
TypeDescription
CreateUserLinkRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNotifyNewUser(boolean value)

public CreateUserLinkRequest.Builder setNotifyNewUser(boolean value)

Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.

bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The notifyNewUser to set.

Returns
TypeDescription
CreateUserLinkRequest.Builder

This builder for chaining.

setParent(String value)

public CreateUserLinkRequest.Builder setParent(String value)

Required. Example format: accounts/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateUserLinkRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateUserLinkRequest.Builder setParentBytes(ByteString value)

Required. Example format: accounts/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateUserLinkRequest.Builder

This builder for chaining.

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

public CreateUserLinkRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateUserLinkRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateUserLinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateUserLinkRequest.Builder
Overrides
public CreateUserLinkRequest.Builder setUserLink(UserLink value)

Required. The user link to create.

.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueUserLink
Returns
TypeDescription
CreateUserLinkRequest.Builder
public CreateUserLinkRequest.Builder setUserLink(UserLink.Builder builderForValue)

Required. The user link to create.

.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueUserLink.Builder
Returns
TypeDescription
CreateUserLinkRequest.Builder