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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateUserLinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateUserLinkRequest build()
Returns
buildPartial()
public CreateUserLinkRequest buildPartial()
Returns
clear()
public CreateUserLinkRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateUserLinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateUserLinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateUserLinkRequest.Builder clearParent()
Required. Example format: accounts/1234
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearUserLink()
public CreateUserLinkRequest.Builder clearUserLink()
Required. The user link to create.
.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateUserLinkRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateUserLinkRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
getUserLink()
public UserLink getUserLink()
Required. The user link to create.
.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
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
getUserLinkOrBuilder()
public UserLinkOrBuilder getUserLinkOrBuilder()
Required. The user link to create.
.google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateUserLinkRequest other)
public CreateUserLinkRequest.Builder mergeFrom(CreateUserLinkRequest other)
Parameter
Returns
public CreateUserLinkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateUserLinkRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateUserLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateUserLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateUserLinkRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateUserLinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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];
Parameter
Returns
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];
Parameter
Returns