public final class SamplingMetadata extends GeneratedMessageV3 implements SamplingMetadataOrBuilder
If funnel report results are
sampled, this
metadata describes what percentage of events were used in this funnel
report for a date range. Sampling is the practice of analyzing a subset of
all data in order to uncover the meaningful information in the larger data
set.
Protobuf type google.analytics.data.v1alpha.SamplingMetadata
Static Fields
public static final int SAMPLES_READ_COUNT_FIELD_NUMBER
Field Value
public static final int SAMPLING_SPACE_SIZE_FIELD_NUMBER
Field Value
Static Methods
public static SamplingMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static SamplingMetadata.Builder newBuilder()
Returns
public static SamplingMetadata.Builder newBuilder(SamplingMetadata prototype)
Parameter
Returns
public static SamplingMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SamplingMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SamplingMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static SamplingMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SamplingMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static SamplingMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SamplingMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SamplingMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SamplingMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SamplingMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SamplingMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static SamplingMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<SamplingMetadata> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public SamplingMetadata getDefaultInstanceForType()
Returns
public Parser<SamplingMetadata> getParserForType()
Returns
Overrides
public long getSamplesReadCount()
The total number of events read in this sampled report for a date range.
This is the size of the subset this property's data that was analyzed in
this funnel report.
int64 samples_read_count = 1;
Returns
Type | Description |
long | The samplesReadCount.
|
public long getSamplingSpaceSize()
The total number of events present in this property's data that could
have been analyzed in this funnel report for a date range. Sampling
uncovers the meaningful information about the larger data set, and this
is the size of the larger data set.
To calculate the percentage of available data that was used in this
funnel report, compute samplesReadCount/samplingSpaceSize
.
int64 sampling_space_size = 2;
Returns
Type | Description |
long | The samplingSpaceSize.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public SamplingMetadata.Builder newBuilderForType()
Returns
protected SamplingMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public SamplingMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions