Class TrafficSource.Builder (0.14.1)

public static final class TrafficSource.Builder extends GeneratedMessageV3.Builder<TrafficSource.Builder> implements TrafficSourceOrBuilder

Mesage containing marketing campaign information which acquired the user.

Protobuf type google.events.firebase.analytics.v1.TrafficSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TrafficSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TrafficSource.Builder
Overrides

build()

public TrafficSource build()
Returns
TypeDescription
TrafficSource

buildPartial()

public TrafficSource buildPartial()
Returns
TypeDescription
TrafficSource

clear()

public TrafficSource.Builder clear()
Returns
TypeDescription
TrafficSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TrafficSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TrafficSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TrafficSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TrafficSource.Builder
Overrides

clearUserAcquiredCampaign()

public TrafficSource.Builder clearUserAcquiredCampaign()

The name of the campaign which acquired the user.

string user_acquired_campaign = 2;

Returns
TypeDescription
TrafficSource.Builder

This builder for chaining.

clearUserAcquiredMedium()

public TrafficSource.Builder clearUserAcquiredMedium()

The name of the medium which acquired the user.

string user_acquired_medium = 4;

Returns
TypeDescription
TrafficSource.Builder

This builder for chaining.

clearUserAcquiredSource()

public TrafficSource.Builder clearUserAcquiredSource()

The name of the network which acquired the user.

string user_acquired_source = 3;

Returns
TypeDescription
TrafficSource.Builder

This builder for chaining.

clone()

public TrafficSource.Builder clone()
Returns
TypeDescription
TrafficSource.Builder
Overrides

getDefaultInstanceForType()

public TrafficSource getDefaultInstanceForType()
Returns
TypeDescription
TrafficSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUserAcquiredCampaign()

public String getUserAcquiredCampaign()

The name of the campaign which acquired the user.

string user_acquired_campaign = 2;

Returns
TypeDescription
String

The userAcquiredCampaign.

getUserAcquiredCampaignBytes()

public ByteString getUserAcquiredCampaignBytes()

The name of the campaign which acquired the user.

string user_acquired_campaign = 2;

Returns
TypeDescription
ByteString

The bytes for userAcquiredCampaign.

getUserAcquiredMedium()

public String getUserAcquiredMedium()

The name of the medium which acquired the user.

string user_acquired_medium = 4;

Returns
TypeDescription
String

The userAcquiredMedium.

getUserAcquiredMediumBytes()

public ByteString getUserAcquiredMediumBytes()

The name of the medium which acquired the user.

string user_acquired_medium = 4;

Returns
TypeDescription
ByteString

The bytes for userAcquiredMedium.

getUserAcquiredSource()

public String getUserAcquiredSource()

The name of the network which acquired the user.

string user_acquired_source = 3;

Returns
TypeDescription
String

The userAcquiredSource.

getUserAcquiredSourceBytes()

public ByteString getUserAcquiredSourceBytes()

The name of the network which acquired the user.

string user_acquired_source = 3;

Returns
TypeDescription
ByteString

The bytes for userAcquiredSource.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TrafficSource other)

public TrafficSource.Builder mergeFrom(TrafficSource other)
Parameter
NameDescription
otherTrafficSource
Returns
TypeDescription
TrafficSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TrafficSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrafficSource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TrafficSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TrafficSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TrafficSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrafficSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TrafficSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TrafficSource.Builder
Overrides

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

public TrafficSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TrafficSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TrafficSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrafficSource.Builder
Overrides

setUserAcquiredCampaign(String value)

public TrafficSource.Builder setUserAcquiredCampaign(String value)

The name of the campaign which acquired the user.

string user_acquired_campaign = 2;

Parameter
NameDescription
valueString

The userAcquiredCampaign to set.

Returns
TypeDescription
TrafficSource.Builder

This builder for chaining.

setUserAcquiredCampaignBytes(ByteString value)

public TrafficSource.Builder setUserAcquiredCampaignBytes(ByteString value)

The name of the campaign which acquired the user.

string user_acquired_campaign = 2;

Parameter
NameDescription
valueByteString

The bytes for userAcquiredCampaign to set.

Returns
TypeDescription
TrafficSource.Builder

This builder for chaining.

setUserAcquiredMedium(String value)

public TrafficSource.Builder setUserAcquiredMedium(String value)

The name of the medium which acquired the user.

string user_acquired_medium = 4;

Parameter
NameDescription
valueString

The userAcquiredMedium to set.

Returns
TypeDescription
TrafficSource.Builder

This builder for chaining.

setUserAcquiredMediumBytes(ByteString value)

public TrafficSource.Builder setUserAcquiredMediumBytes(ByteString value)

The name of the medium which acquired the user.

string user_acquired_medium = 4;

Parameter
NameDescription
valueByteString

The bytes for userAcquiredMedium to set.

Returns
TypeDescription
TrafficSource.Builder

This builder for chaining.

setUserAcquiredSource(String value)

public TrafficSource.Builder setUserAcquiredSource(String value)

The name of the network which acquired the user.

string user_acquired_source = 3;

Parameter
NameDescription
valueString

The userAcquiredSource to set.

Returns
TypeDescription
TrafficSource.Builder

This builder for chaining.

setUserAcquiredSourceBytes(ByteString value)

public TrafficSource.Builder setUserAcquiredSourceBytes(ByteString value)

The name of the network which acquired the user.

string user_acquired_source = 3;

Parameter
NameDescription
valueByteString

The bytes for userAcquiredSource to set.

Returns
TypeDescription
TrafficSource.Builder

This builder for chaining.