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];