Class Funnel.Builder (0.18.0)

public static final class Funnel.Builder extends GeneratedMessageV3.Builder<Funnel.Builder> implements FunnelOrBuilder

Configures the funnel in a funnel report request. A funnel reports on users as they pass through a sequence of steps. Funnel exploration lets you visualize the steps your users take to complete a task and quickly see how well they are succeeding or failing at each step. For example, how do prospects become shoppers and then become buyers? How do one time buyers become repeat buyers? With this information, you can improve inefficient or abandoned customer journeys.

Protobuf type google.analytics.data.v1alpha.Funnel

Implements

FunnelOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllSteps(Iterable<? extends FunnelStep> values)

public Funnel.Builder addAllSteps(Iterable<? extends FunnelStep> values)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.data.v1alpha.FunnelStep>
Returns
TypeDescription
Funnel.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSteps(FunnelStep value)

public Funnel.Builder addSteps(FunnelStep value)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameter
NameDescription
valueFunnelStep
Returns
TypeDescription
Funnel.Builder

addSteps(FunnelStep.Builder builderForValue)

public Funnel.Builder addSteps(FunnelStep.Builder builderForValue)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameter
NameDescription
builderForValueFunnelStep.Builder
Returns
TypeDescription
Funnel.Builder

addSteps(int index, FunnelStep value)

public Funnel.Builder addSteps(int index, FunnelStep value)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameters
NameDescription
indexint
valueFunnelStep
Returns
TypeDescription
Funnel.Builder

addSteps(int index, FunnelStep.Builder builderForValue)

public Funnel.Builder addSteps(int index, FunnelStep.Builder builderForValue)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameters
NameDescription
indexint
builderForValueFunnelStep.Builder
Returns
TypeDescription
Funnel.Builder

addStepsBuilder()

public FunnelStep.Builder addStepsBuilder()

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Returns
TypeDescription
FunnelStep.Builder

addStepsBuilder(int index)

public FunnelStep.Builder addStepsBuilder(int index)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FunnelStep.Builder

build()

public Funnel build()
Returns
TypeDescription
Funnel

buildPartial()

public Funnel buildPartial()
Returns
TypeDescription
Funnel

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIsOpenFunnel()

public Funnel.Builder clearIsOpenFunnel()

In an open funnel, users can enter the funnel in any step, and in a closed funnel, users must enter the funnel in the first step. Optional. If unspecified, a closed funnel is used.

bool is_open_funnel = 1;

Returns
TypeDescription
Funnel.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSteps()

public Funnel.Builder clearSteps()

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Returns
TypeDescription
Funnel.Builder

clone()

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

getDefaultInstanceForType()

public Funnel getDefaultInstanceForType()
Returns
TypeDescription
Funnel

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIsOpenFunnel()

public boolean getIsOpenFunnel()

In an open funnel, users can enter the funnel in any step, and in a closed funnel, users must enter the funnel in the first step. Optional. If unspecified, a closed funnel is used.

bool is_open_funnel = 1;

Returns
TypeDescription
boolean

The isOpenFunnel.

getSteps(int index)

public FunnelStep getSteps(int index)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FunnelStep

getStepsBuilder(int index)

public FunnelStep.Builder getStepsBuilder(int index)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FunnelStep.Builder

getStepsBuilderList()

public List<FunnelStep.Builder> getStepsBuilderList()

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Returns
TypeDescription
List<Builder>

getStepsCount()

public int getStepsCount()

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Returns
TypeDescription
int

getStepsList()

public List<FunnelStep> getStepsList()

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Returns
TypeDescription
List<FunnelStep>

getStepsOrBuilder(int index)

public FunnelStepOrBuilder getStepsOrBuilder(int index)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FunnelStepOrBuilder

getStepsOrBuilderList()

public List<? extends FunnelStepOrBuilder> getStepsOrBuilderList()

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Returns
TypeDescription
List<? extends com.google.analytics.data.v1alpha.FunnelStepOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Funnel other)

public Funnel.Builder mergeFrom(Funnel other)
Parameter
NameDescription
otherFunnel
Returns
TypeDescription
Funnel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSteps(int index)

public Funnel.Builder removeSteps(int index)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Funnel.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIsOpenFunnel(boolean value)

public Funnel.Builder setIsOpenFunnel(boolean value)

In an open funnel, users can enter the funnel in any step, and in a closed funnel, users must enter the funnel in the first step. Optional. If unspecified, a closed funnel is used.

bool is_open_funnel = 1;

Parameter
NameDescription
valueboolean

The isOpenFunnel to set.

Returns
TypeDescription
Funnel.Builder

This builder for chaining.

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

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

setSteps(int index, FunnelStep value)

public Funnel.Builder setSteps(int index, FunnelStep value)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameters
NameDescription
indexint
valueFunnelStep
Returns
TypeDescription
Funnel.Builder

setSteps(int index, FunnelStep.Builder builderForValue)

public Funnel.Builder setSteps(int index, FunnelStep.Builder builderForValue)

The sequential steps of this funnel.

repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;

Parameters
NameDescription
indexint
builderForValueFunnelStep.Builder
Returns
TypeDescription
Funnel.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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