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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public CreateUserRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateUserRequest build()
public CreateUserRequest buildPartial()
public CreateUserRequest.Builder clear()
Overrides
public CreateUserRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CreateUserRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
public CreateUserRequest.Builder clearUser()
Required. The user to create.
.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];
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];
public CreateUserRequest.Builder clone()
Overrides
public CreateUserRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
Required. The user to create.
.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
User |
The user.
|
public User.Builder getUserBuilder()
Required. The user to create.
.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];
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.
|
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.
|
public UserOrBuilder getUserOrBuilder()
Required. The user to create.
.google.shopping.merchant.accounts.v1beta.User user = 3 [(.google.api.field_behavior) = REQUIRED];
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public CreateUserRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public CreateUserRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public CreateUserRequest.Builder mergeFrom(CreateUserRequest other)
public final CreateUserRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public CreateUserRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
public CreateUserRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final CreateUserRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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];
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.
|
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.
|