Send feedback
Class CreateUserLinkRequest.Builder (0.34.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.34.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateUserLinkRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public CreateUserLinkRequest build ()
buildPartial()
public CreateUserLinkRequest buildPartial ()
clear()
public CreateUserLinkRequest . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateUserLinkRequest . Builder clearField ( Descriptors . FieldDescriptor field )
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateUserLinkRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearParent()
public CreateUserLinkRequest . Builder clearParent ()
Required. Example format: accounts/1234
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearUserLink()
public CreateUserLinkRequest . Builder clearUserLink ()
Required. The user link to create.
.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];
clone()
public CreateUserLinkRequest . Builder clone ()
Overrides
getDefaultInstanceForType()
public CreateUserLinkRequest getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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 Type Description 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 Type Description 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 Type Description ByteString
The bytes for parent.
getUserLink()
public UserLink getUserLink ()
Required. The user link to create.
.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];
Returns Type Description 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];
getUserLinkOrBuilder()
public UserLinkOrBuilder getUserLinkOrBuilder ()
Required. The user link to create.
.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];
hasUserLink()
public boolean hasUserLink ()
Required. The user link to create.
.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];
Returns Type Description boolean
Whether the userLink field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(CreateUserLinkRequest other)
public CreateUserLinkRequest . Builder mergeFrom ( CreateUserLinkRequest other )
public CreateUserLinkRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public CreateUserLinkRequest . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateUserLinkRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
mergeUserLink(UserLink value)
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];
setField(Descriptors.FieldDescriptor field, Object value)
public CreateUserLinkRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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 Name Description value
boolean
The notifyNewUser to set.
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 Name Description value
String
The parent to set.
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 Name Description value
ByteString
The bytes for parent to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateUserLinkRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateUserLinkRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setUserLink(UserLink value)
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];
setUserLink(UserLink.Builder builderForValue)
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];
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `CreateUserLinkRequest.Builder` class within the Google Analytics Admin API for Java, covering versions from 0.14.0 to the latest 0.70.0."],["The `CreateUserLinkRequest.Builder` class is used to construct requests for creating user links in the Google Analytics Admin API, and it implements the `CreateUserLinkRequestOrBuilder` interface."],["The documentation details methods for managing fields within the request, such as setting the parent resource, the user link, and an option to notify new users via email."],["The latest version of this class is 0.70.0, and it inherits methods from multiple abstract classes like `GeneratedMessageV3.Builder`, `AbstractMessage.Builder`, and `AbstractMessageLite.Builder`."],["The class also handles requests, merges, and sets data types in order to build a full request."]]],[]]