Class VideoCharacteristics.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoCharacteristics.Builder>
com.google.cloud.discoveryengine.v1alpha.VideoCharacteristics.Builder
- All Implemented Interfaces:
VideoCharacteristicsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VideoCharacteristics
public static final class VideoCharacteristics.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VideoCharacteristics.Builder>
implements VideoCharacteristicsOrBuilder
Standard characteristics of a video media view.Protobuf type
google.cloud.discoveryengine.v1alpha.VideoCharacteristics-
Method Summary
Modifier and TypeMethodDescriptionaddAllAudioCodecs(Iterable<String> values) Output only.addAllVideoCodecs(Iterable<String> values) Output only.addAudioCodecs(String value) Output only.addAudioCodecsBytes(com.google.protobuf.ByteString value) Output only.addVideoCodecs(String value) Output only.addVideoCodecsBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.intOutput only.getAudioCodecs(int index) Output only.com.google.protobuf.ByteStringgetAudioCodecsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationOutput only.com.google.protobuf.Duration.BuilderOutput only.com.google.protobuf.DurationOrBuilderOutput only.doubleOutput only.intOutput only.intOutput only.getVideoCodecs(int index) Output only.com.google.protobuf.ByteStringgetVideoCodecsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.intgetWidth()Output only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDuration(com.google.protobuf.Duration value) Output only.mergeFrom(VideoCharacteristics other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAudioBitrateKbps(int value) Output only.setAudioCodecs(int index, String value) Output only.setDuration(com.google.protobuf.Duration value) Output only.setDuration(com.google.protobuf.Duration.Builder builderForValue) Output only.setFrameRate(double value) Output only.setHeight(int value) Output only.setVideoBitrateKbps(int value) Output only.setVideoCodecs(int index, String value) Output only.setWidth(int value) Output only.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<VideoCharacteristics.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<VideoCharacteristics.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<VideoCharacteristics.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<VideoCharacteristics.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VideoCharacteristics.Builder>
-
mergeFrom
public VideoCharacteristics.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<VideoCharacteristics.Builder>- Throws:
IOException
-
getWidth
public int getWidth()Output only. Video width in pixels.
int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWidthin interfaceVideoCharacteristicsOrBuilder- Returns:
- The width.
-
setWidth
Output only. Video width in pixels.
int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The width to set.- Returns:
- This builder for chaining.
-
clearWidth
Output only. Video width in pixels.
int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getHeight
public int getHeight()Output only. Video height in pixels.
int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHeightin interfaceVideoCharacteristicsOrBuilder- Returns:
- The height.
-
setHeight
Output only. Video height in pixels.
int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The height to set.- Returns:
- This builder for chaining.
-
clearHeight
Output only. Video height in pixels.
int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasDuration
public boolean hasDuration()Output only. Video duration.
.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDurationin interfaceVideoCharacteristicsOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()Output only. Video duration.
.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDurationin interfaceVideoCharacteristicsOrBuilder- Returns:
- The duration.
-
setDuration
Output only. Video duration.
.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setDuration
public VideoCharacteristics.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) Output only. Video duration.
.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeDuration
Output only. Video duration.
.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearDuration
Output only. Video duration.
.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()Output only. Video duration.
.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()Output only. Video duration.
.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDurationOrBuilderin interfaceVideoCharacteristicsOrBuilder
-
getFrameRate
public double getFrameRate()Output only. Frame rate (frames per second).
double frame_rate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFrameRatein interfaceVideoCharacteristicsOrBuilder- Returns:
- The frameRate.
-
setFrameRate
Output only. Frame rate (frames per second).
double frame_rate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The frameRate to set.- Returns:
- This builder for chaining.
-
clearFrameRate
Output only. Frame rate (frames per second).
double frame_rate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getAudioCodecsList
public com.google.protobuf.ProtocolStringList getAudioCodecsList()Output only. Audio codecs used in the video.
repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAudioCodecsListin interfaceVideoCharacteristicsOrBuilder- Returns:
- A list containing the audioCodecs.
-
getAudioCodecsCount
public int getAudioCodecsCount()Output only. Audio codecs used in the video.
repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAudioCodecsCountin interfaceVideoCharacteristicsOrBuilder- Returns:
- The count of audioCodecs.
-
getAudioCodecs
Output only. Audio codecs used in the video.
repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAudioCodecsin interfaceVideoCharacteristicsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The audioCodecs at the given index.
-
getAudioCodecsBytes
public com.google.protobuf.ByteString getAudioCodecsBytes(int index) Output only. Audio codecs used in the video.
repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAudioCodecsBytesin interfaceVideoCharacteristicsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the audioCodecs at the given index.
-
setAudioCodecs
Output only. Audio codecs used in the video.
repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The audioCodecs to set.- Returns:
- This builder for chaining.
-
addAudioCodecs
Output only. Audio codecs used in the video.
repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The audioCodecs to add.- Returns:
- This builder for chaining.
-
addAllAudioCodecs
Output only. Audio codecs used in the video.
repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The audioCodecs to add.- Returns:
- This builder for chaining.
-
clearAudioCodecs
Output only. Audio codecs used in the video.
repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addAudioCodecsBytes
Output only. Audio codecs used in the video.
repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the audioCodecs to add.- Returns:
- This builder for chaining.
-
getVideoCodecsList
public com.google.protobuf.ProtocolStringList getVideoCodecsList()Output only. Video codecs used in the video.
repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVideoCodecsListin interfaceVideoCharacteristicsOrBuilder- Returns:
- A list containing the videoCodecs.
-
getVideoCodecsCount
public int getVideoCodecsCount()Output only. Video codecs used in the video.
repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVideoCodecsCountin interfaceVideoCharacteristicsOrBuilder- Returns:
- The count of videoCodecs.
-
getVideoCodecs
Output only. Video codecs used in the video.
repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVideoCodecsin interfaceVideoCharacteristicsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The videoCodecs at the given index.
-
getVideoCodecsBytes
public com.google.protobuf.ByteString getVideoCodecsBytes(int index) Output only. Video codecs used in the video.
repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVideoCodecsBytesin interfaceVideoCharacteristicsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the videoCodecs at the given index.
-
setVideoCodecs
Output only. Video codecs used in the video.
repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The videoCodecs to set.- Returns:
- This builder for chaining.
-
addVideoCodecs
Output only. Video codecs used in the video.
repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The videoCodecs to add.- Returns:
- This builder for chaining.
-
addAllVideoCodecs
Output only. Video codecs used in the video.
repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The videoCodecs to add.- Returns:
- This builder for chaining.
-
clearVideoCodecs
Output only. Video codecs used in the video.
repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addVideoCodecsBytes
Output only. Video codecs used in the video.
repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the videoCodecs to add.- Returns:
- This builder for chaining.
-
getVideoBitrateKbps
public int getVideoBitrateKbps()Output only. Bitrate of the video in kbps.
int32 video_bitrate_kbps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVideoBitrateKbpsin interfaceVideoCharacteristicsOrBuilder- Returns:
- The videoBitrateKbps.
-
setVideoBitrateKbps
Output only. Bitrate of the video in kbps.
int32 video_bitrate_kbps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The videoBitrateKbps to set.- Returns:
- This builder for chaining.
-
clearVideoBitrateKbps
Output only. Bitrate of the video in kbps.
int32 video_bitrate_kbps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getAudioBitrateKbps
public int getAudioBitrateKbps()Output only. Bitrate of the audio in kbps.
int32 audio_bitrate_kbps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAudioBitrateKbpsin interfaceVideoCharacteristicsOrBuilder- Returns:
- The audioBitrateKbps.
-
setAudioBitrateKbps
Output only. Bitrate of the audio in kbps.
int32 audio_bitrate_kbps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The audioBitrateKbps to set.- Returns:
- This builder for chaining.
-
clearAudioBitrateKbps
Output only. Bitrate of the audio in kbps.
int32 audio_bitrate_kbps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-