Class CreateUserRequest.Builder (0.7.0)

public static final class CreateUserRequest.Builder extends GeneratedMessageV3.Builder<CreateUserRequest.Builder> implements CreateUserRequestOrBuilder

Request message for the CreateUser method.

Protobuf type google.shopping.merchant.accounts.v1beta.CreateUserRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateUserRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateUserRequest.Builder
Overrides

build()

public CreateUserRequest build()
Returns
Type Description
CreateUserRequest

buildPartial()

public CreateUserRequest buildPartial()
Returns
Type Description
CreateUserRequest

clear()

public CreateUserRequest.Builder clear()
Returns
Type Description
CreateUserRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateUserRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateUserRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateUserRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateUserRequest.Builder
Overrides

clearParent()

public CreateUserRequest.Builder clearParent()

Required. The resource name of the account for which a user will be created. Format: accounts/{account}

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

Returns
Type Description
CreateUserRequest.Builder

This builder for chaining.

clearUser()

public CreateUserRequest.Builder clearUser()

Required. The user to create.

.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateUserRequest.Builder

clearUserId()

public CreateUserRequest.Builder clearUserId()

Required. The email address of the user (for example, john.doe@gmail.com).

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateUserRequest.Builder

This builder for chaining.

clone()

public CreateUserRequest.Builder clone()
Returns
Type Description
CreateUserRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateUserRequest getDefaultInstanceForType()
Returns
Type Description
CreateUserRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The resource name of the account for which a user will be created. Format: accounts/{account}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the account for which a user will be created. Format: accounts/{account}

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

Returns
Type Description
ByteString

The bytes for parent.

getUser()

public User getUser()

Required. The user to create.

.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
User

The user.

getUserBuilder()

public User.Builder getUserBuilder()

Required. The user to create.

.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
User.Builder

getUserId()

public String getUserId()

Required. The email address of the user (for example, john.doe@gmail.com).

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The userId.

getUserIdBytes()

public ByteString getUserIdBytes()

Required. The email address of the user (for example, john.doe@gmail.com).

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for userId.

getUserOrBuilder()

public UserOrBuilder getUserOrBuilder()

Required. The user to create.

.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserOrBuilder

hasUser()

public boolean hasUser()

Required. The user to create.

.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the user field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateUserRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateUserRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateUserRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateUserRequest.Builder
Overrides

mergeFrom(CreateUserRequest other)

public CreateUserRequest.Builder mergeFrom(CreateUserRequest other)
Parameter
Name Description
other CreateUserRequest
Returns
Type Description
CreateUserRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateUserRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateUserRequest.Builder
Overrides

mergeUser(User value)

public CreateUserRequest.Builder mergeUser(User value)

Required. The user to create.

.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value User
Returns
Type Description
CreateUserRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateUserRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateUserRequest.Builder
Overrides

setParent(String value)

public CreateUserRequest.Builder setParent(String value)

Required. The resource name of the account for which a user will be created. Format: accounts/{account}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateUserRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateUserRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the account for which a user will be created. Format: accounts/{account}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateUserRequest.Builder

This builder for chaining.

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

public CreateUserRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateUserRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateUserRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateUserRequest.Builder
Overrides

setUser(User value)

public CreateUserRequest.Builder setUser(User value)

Required. The user to create.

.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value User
Returns
Type Description
CreateUserRequest.Builder

setUser(User.Builder builderForValue)

public CreateUserRequest.Builder setUser(User.Builder builderForValue)

Required. The user to create.

.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue User.Builder
Returns
Type Description
CreateUserRequest.Builder

setUserId(String value)

public CreateUserRequest.Builder setUserId(String value)

Required. The email address of the user (for example, john.doe@gmail.com).

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The userId to set.

Returns
Type Description
CreateUserRequest.Builder

This builder for chaining.

setUserIdBytes(ByteString value)

public CreateUserRequest.Builder setUserIdBytes(ByteString value)

Required. The email address of the user (for example, john.doe@gmail.com).

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for userId to set.

Returns
Type Description
CreateUserRequest.Builder

This builder for chaining.