Class GoogleUserIdData.Builder (0.20.0)

public static final class GoogleUserIdData.Builder extends GeneratedMessage.Builder<GoogleUserIdData.Builder> implements GoogleUserIdDataOrBuilder

Google user id data holding encrypted google user IDs. At least one google user ID is required.

Protobuf type google.ads.datamanager.v1.GoogleUserIdData

Static Methods

getDescriptor()

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

Methods

addAllGoogleUserIds(Iterable<String> values)

public GoogleUserIdData.Builder addAllGoogleUserIds(Iterable<String> values)

Required. The list of encrypted google user IDs.

repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The googleUserIds to add.

Returns
Type Description
GoogleUserIdData.Builder

This builder for chaining.

addGoogleUserIds(String value)

public GoogleUserIdData.Builder addGoogleUserIds(String value)

Required. The list of encrypted google user IDs.

repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The googleUserIds to add.

Returns
Type Description
GoogleUserIdData.Builder

This builder for chaining.

addGoogleUserIdsBytes(ByteString value)

public GoogleUserIdData.Builder addGoogleUserIdsBytes(ByteString value)

Required. The list of encrypted google user IDs.

repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the googleUserIds to add.

Returns
Type Description
GoogleUserIdData.Builder

This builder for chaining.

build()

public GoogleUserIdData build()
Returns
Type Description
GoogleUserIdData

buildPartial()

public GoogleUserIdData buildPartial()
Returns
Type Description
GoogleUserIdData

clear()

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

clearGoogleUserIds()

public GoogleUserIdData.Builder clearGoogleUserIds()

Required. The list of encrypted google user IDs.

repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GoogleUserIdData.Builder

This builder for chaining.

getDefaultInstanceForType()

public GoogleUserIdData getDefaultInstanceForType()
Returns
Type Description
GoogleUserIdData

getDescriptorForType()

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

getGoogleUserIds(int index)

public String getGoogleUserIds(int index)

Required. The list of encrypted google user IDs.

repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The googleUserIds at the given index.

getGoogleUserIdsBytes(int index)

public ByteString getGoogleUserIdsBytes(int index)

Required. The list of encrypted google user IDs.

repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the googleUserIds at the given index.

getGoogleUserIdsCount()

public int getGoogleUserIdsCount()

Required. The list of encrypted google user IDs.

repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of googleUserIds.

getGoogleUserIdsList()

public ProtocolStringList getGoogleUserIdsList()

Required. The list of encrypted google user IDs.

repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the googleUserIds.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GoogleUserIdData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setGoogleUserIds(int index, String value)

public GoogleUserIdData.Builder setGoogleUserIds(int index, String value)

Required. The list of encrypted google user IDs.

repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The googleUserIds to set.

Returns
Type Description
GoogleUserIdData.Builder

This builder for chaining.