Class ConversionSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConversionSpec.Builder>
com.google.analytics.data.v1alpha.ConversionSpec.Builder
- All Implemented Interfaces:
ConversionSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConversionSpec
public static final class ConversionSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ConversionSpec.Builder>
implements ConversionSpecOrBuilder
Controls conversion reporting. <aside class="caution"> This feature may not be available to your Google Analytics property. The Google Analytics team is actively working to expand this feature to more properties. Please reach out to your <a href="https://support.google.com/analytics/gethelp">support team</a> if you have questions about the eligibility of your property. </aside>Protobuf type
google.analytics.data.v1alpha.ConversionSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllConversionActions(Iterable<String> values) The conversion action IDs to include in the report.addConversionActions(String value) The conversion action IDs to include in the report.addConversionActionsBytes(com.google.protobuf.ByteString value) The conversion action IDs to include in the report.build()clear()The attribution model to use in the Conversion Report.The conversion action IDs to include in the report.The attribution model to use in the Conversion Report.intThe attribution model to use in the Conversion Report.getConversionActions(int index) The conversion action IDs to include in the report.com.google.protobuf.ByteStringgetConversionActionsBytes(int index) The conversion action IDs to include in the report.intThe conversion action IDs to include in the report.com.google.protobuf.ProtocolStringListThe conversion action IDs to include in the report.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ConversionSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The attribution model to use in the Conversion Report.setAttributionModelValue(int value) The attribution model to use in the Conversion Report.setConversionActions(int index, String value) The conversion action IDs to include in the report.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ConversionSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ConversionSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ConversionSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConversionSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConversionSpec.Builder>
-
mergeFrom
public ConversionSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConversionSpec.Builder>- Throws:
IOException
-
getConversionActionsList
public com.google.protobuf.ProtocolStringList getConversionActionsList()The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the `conversion_action` field within the `conversions` list in the response of the `GetMetadata` method. For example, 'conversionActions/1234'.
repeated string conversion_actions = 1;- Specified by:
getConversionActionsListin interfaceConversionSpecOrBuilder- Returns:
- A list containing the conversionActions.
-
getConversionActionsCount
public int getConversionActionsCount()The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the `conversion_action` field within the `conversions` list in the response of the `GetMetadata` method. For example, 'conversionActions/1234'.
repeated string conversion_actions = 1;- Specified by:
getConversionActionsCountin interfaceConversionSpecOrBuilder- Returns:
- The count of conversionActions.
-
getConversionActions
The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the `conversion_action` field within the `conversions` list in the response of the `GetMetadata` method. For example, 'conversionActions/1234'.
repeated string conversion_actions = 1;- Specified by:
getConversionActionsin interfaceConversionSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The conversionActions at the given index.
-
getConversionActionsBytes
public com.google.protobuf.ByteString getConversionActionsBytes(int index) The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the `conversion_action` field within the `conversions` list in the response of the `GetMetadata` method. For example, 'conversionActions/1234'.
repeated string conversion_actions = 1;- Specified by:
getConversionActionsBytesin interfaceConversionSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the conversionActions at the given index.
-
setConversionActions
The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the `conversion_action` field within the `conversions` list in the response of the `GetMetadata` method. For example, 'conversionActions/1234'.
repeated string conversion_actions = 1;- Parameters:
index- The index to set the value at.value- The conversionActions to set.- Returns:
- This builder for chaining.
-
addConversionActions
The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the `conversion_action` field within the `conversions` list in the response of the `GetMetadata` method. For example, 'conversionActions/1234'.
repeated string conversion_actions = 1;- Parameters:
value- The conversionActions to add.- Returns:
- This builder for chaining.
-
addAllConversionActions
The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the `conversion_action` field within the `conversions` list in the response of the `GetMetadata` method. For example, 'conversionActions/1234'.
repeated string conversion_actions = 1;- Parameters:
values- The conversionActions to add.- Returns:
- This builder for chaining.
-
clearConversionActions
The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the `conversion_action` field within the `conversions` list in the response of the `GetMetadata` method. For example, 'conversionActions/1234'.
repeated string conversion_actions = 1;- Returns:
- This builder for chaining.
-
addConversionActionsBytes
The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the `conversion_action` field within the `conversions` list in the response of the `GetMetadata` method. For example, 'conversionActions/1234'.
repeated string conversion_actions = 1;- Parameters:
value- The bytes of the conversionActions to add.- Returns:
- This builder for chaining.
-
getAttributionModelValue
public int getAttributionModelValue()The attribution model to use in the Conversion Report. If unspecified, `DATA_DRIVEN` is used.
.google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;- Specified by:
getAttributionModelValuein interfaceConversionSpecOrBuilder- Returns:
- The enum numeric value on the wire for attributionModel.
-
setAttributionModelValue
The attribution model to use in the Conversion Report. If unspecified, `DATA_DRIVEN` is used.
.google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;- Parameters:
value- The enum numeric value on the wire for attributionModel to set.- Returns:
- This builder for chaining.
-
getAttributionModel
The attribution model to use in the Conversion Report. If unspecified, `DATA_DRIVEN` is used.
.google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;- Specified by:
getAttributionModelin interfaceConversionSpecOrBuilder- Returns:
- The attributionModel.
-
setAttributionModel
The attribution model to use in the Conversion Report. If unspecified, `DATA_DRIVEN` is used.
.google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;- Parameters:
value- The attributionModel to set.- Returns:
- This builder for chaining.
-
clearAttributionModel
The attribution model to use in the Conversion Report. If unspecified, `DATA_DRIVEN` is used.
.google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;- Returns:
- This builder for chaining.
-