Class UserIdInfo.Builder (0.8.0)

public static final class UserIdInfo.Builder extends GeneratedMessage.Builder<UserIdInfo.Builder> implements UserIdInfoOrBuilder

Additional information when USER_ID is one of the upload_key_types.

Protobuf type google.ads.datamanager.v1.UserIdInfo

Implements

UserIdInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public UserIdInfo build()
Returns
Type Description
UserIdInfo

buildPartial()

public UserIdInfo buildPartial()
Returns
Type Description
UserIdInfo

clear()

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

clearDataSourceType()

public UserIdInfo.Builder clearDataSourceType()

Optional. Immutable. Source of the upload data.

optional .google.ads.datamanager.v1.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
UserIdInfo.Builder

This builder for chaining.

getDataSourceType()

public DataSourceType getDataSourceType()

Optional. Immutable. Source of the upload data.

optional .google.ads.datamanager.v1.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DataSourceType

The dataSourceType.

getDataSourceTypeValue()

public int getDataSourceTypeValue()

Optional. Immutable. Source of the upload data.

optional .google.ads.datamanager.v1.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for dataSourceType.

getDefaultInstanceForType()

public UserIdInfo getDefaultInstanceForType()
Returns
Type Description
UserIdInfo

getDescriptorForType()

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

hasDataSourceType()

public boolean hasDataSourceType()

Optional. Immutable. Source of the upload data.

optional .google.ads.datamanager.v1.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the dataSourceType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserIdInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDataSourceType(DataSourceType value)

public UserIdInfo.Builder setDataSourceType(DataSourceType value)

Optional. Immutable. Source of the upload data.

optional .google.ads.datamanager.v1.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value DataSourceType

The dataSourceType to set.

Returns
Type Description
UserIdInfo.Builder

This builder for chaining.

setDataSourceTypeValue(int value)

public UserIdInfo.Builder setDataSourceTypeValue(int value)

Optional. Immutable. Source of the upload data.

optional .google.ads.datamanager.v1.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

The enum numeric value on the wire for dataSourceType to set.

Returns
Type Description
UserIdInfo.Builder

This builder for chaining.