Fix wrong documentation and add missing annotations

#minor-release

PiperOrigin-RevId: 552749407
(cherry picked from commit 267d4164a9)
This commit is contained in:
rohks 2023-08-01 11:21:33 +01:00 committed by Tianyi Feng
parent 50db5207cb
commit e8a4894a31
2 changed files with 5 additions and 5 deletions

View file

@ -283,7 +283,7 @@ public final class CmcdConfiguration {
} }
/** /**
* Returns whether logging object duration is allowed based on the {@linkplain RequestConfig * Returns whether logging measured throughput is allowed based on the {@linkplain RequestConfig
* request configuration}. * request configuration}.
*/ */
public boolean isMeasuredThroughputLoggingAllowed() { public boolean isMeasuredThroughputLoggingAllowed() {

View file

@ -442,8 +442,8 @@ public final class CmcdLog {
public static final class Builder { public static final class Builder {
@Nullable private String contentId; @Nullable private String contentId;
@Nullable private String sessionId; @Nullable private String sessionId;
@Nullable private String streamingFormat; @Nullable private @StreamingFormat String streamingFormat;
@Nullable private String streamType; @Nullable private @StreamType String streamType;
@Nullable private String customData; @Nullable private String customData;
/** /**
@ -526,13 +526,13 @@ public final class CmcdLog {
* (HLS), s = Smooth Streaming and o = other. If the streaming format being requested is * (HLS), s = Smooth Streaming and o = other. If the streaming format being requested is
* unknown, then this key MUST NOT be used. * unknown, then this key MUST NOT be used.
*/ */
@Nullable public final String streamingFormat; @Nullable public final @StreamingFormat String streamingFormat;
/** /**
* Type of stream. v = all segments are available e.g., VOD and l = segments become available * Type of stream. v = all segments are available e.g., VOD and l = segments become available
* over time e.g., LIVE. * over time e.g., LIVE.
*/ */
@Nullable public final String streamType; @Nullable public final @StreamType String streamType;
/** /**
* Custom data where the values of the keys are expected to be invariant over the life of the * Custom data where the values of the keys are expected to be invariant over the life of the