Class CreateUserListRequest.Builder (0.8.0)

public static final class CreateUserListRequest.Builder extends GeneratedMessage.Builder<CreateUserListRequest.Builder> implements CreateUserListRequestOrBuilder

Request message for CreateUserList.

Protobuf type google.ads.datamanager.v1.CreateUserListRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateUserListRequest build()
Returns
Type Description
CreateUserListRequest

buildPartial()

public CreateUserListRequest buildPartial()
Returns
Type Description
CreateUserListRequest

clear()

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

clearParent()

public CreateUserListRequest.Builder clearParent()

Required. The parent account where this user list will be created. Format: accountTypes/{account_type}/accounts/{account}

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

Returns
Type Description
CreateUserListRequest.Builder

This builder for chaining.

clearUserList()

public CreateUserListRequest.Builder clearUserList()

Required. The user list to create.

.google.ads.datamanager.v1.UserList user_list = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateUserListRequest.Builder

clearValidateOnly()

public CreateUserListRequest.Builder clearValidateOnly()

Optional. If true, the request is validated but not executed.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateUserListRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateUserListRequest getDefaultInstanceForType()
Returns
Type Description
CreateUserListRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent account where this user list will be created. Format: accountTypes/{account_type}/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 parent account where this user list will be created. Format: accountTypes/{account_type}/accounts/{account}

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

Returns
Type Description
ByteString

The bytes for parent.

getUserList()

public UserList getUserList()

Required. The user list to create.

.google.ads.datamanager.v1.UserList user_list = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserList

The userList.

getUserListBuilder()

public UserList.Builder getUserListBuilder()

Required. The user list to create.

.google.ads.datamanager.v1.UserList user_list = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserList.Builder

getUserListOrBuilder()

public UserListOrBuilder getUserListOrBuilder()

Required. The user list to create.

.google.ads.datamanager.v1.UserList user_list = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserListOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. If true, the request is validated but not executed.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasUserList()

public boolean hasUserList()

Required. The user list to create.

.google.ads.datamanager.v1.UserList user_list = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the userList field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateUserListRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUserList(UserList value)

public CreateUserListRequest.Builder mergeUserList(UserList value)

Required. The user list to create.

.google.ads.datamanager.v1.UserList user_list = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserList
Returns
Type Description
CreateUserListRequest.Builder

setParent(String value)

public CreateUserListRequest.Builder setParent(String value)

Required. The parent account where this user list will be created. Format: accountTypes/{account_type}/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
CreateUserListRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateUserListRequest.Builder setParentBytes(ByteString value)

Required. The parent account where this user list will be created. Format: accountTypes/{account_type}/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
CreateUserListRequest.Builder

This builder for chaining.

setUserList(UserList value)

public CreateUserListRequest.Builder setUserList(UserList value)

Required. The user list to create.

.google.ads.datamanager.v1.UserList user_list = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserList
Returns
Type Description
CreateUserListRequest.Builder

setUserList(UserList.Builder builderForValue)

public CreateUserListRequest.Builder setUserList(UserList.Builder builderForValue)

Required. The user list to create.

.google.ads.datamanager.v1.UserList user_list = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UserList.Builder
Returns
Type Description
CreateUserListRequest.Builder

setValidateOnly(boolean value)

public CreateUserListRequest.Builder setValidateOnly(boolean value)

Optional. If true, the request is validated but not executed.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateUserListRequest.Builder

This builder for chaining.