Class SamplingMetadata (0.87.0)
public final class SamplingMetadata extends GeneratedMessageV3 implements SamplingMetadataOrBuilder
If this report results is
sampled, this
describes the percentage of events used in this report. 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.v1beta.SamplingMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int SAMPLES_READ_COUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SAMPLING_SPACE_SIZE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static SamplingMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static SamplingMetadata.Builder newBuilder()
public static SamplingMetadata.Builder newBuilder(SamplingMetadata prototype)
public static SamplingMetadata parseDelimitedFrom(InputStream input)
public static SamplingMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SamplingMetadata parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static SamplingMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SamplingMetadata parseFrom(ByteString data)
public static SamplingMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SamplingMetadata parseFrom(CodedInputStream input)
public static SamplingMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SamplingMetadata parseFrom(InputStream input)
public static SamplingMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SamplingMetadata parseFrom(ByteBuffer data)
public static SamplingMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<SamplingMetadata> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public SamplingMetadata getDefaultInstanceForType()
public Parser<SamplingMetadata> getParserForType()
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 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 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
report, compute samplesReadCount/samplingSpaceSize
.
int64 sampling_space_size = 2;
Returns |
Type |
Description |
long |
The samplingSpaceSize.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SamplingMetadata.Builder newBuilderForType()
protected SamplingMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public SamplingMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]