Class VideoFormat.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoFormat.Builder>
com.google.cloud.video.livestream.v1.VideoFormat.Builder
- All Implemented Interfaces:
VideoFormatOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VideoFormat
public static final class VideoFormat.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VideoFormat.Builder>
implements VideoFormatOrBuilder
Properties of the video format.Protobuf type
google.cloud.video.livestream.v1.VideoFormat-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Video codec used in this video stream.The frame rate of the input video stream.The height of the video stream in pixels.The width of the video stream in pixels.getCodec()Video codec used in this video stream.com.google.protobuf.ByteStringVideo codec used in this video stream.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleThe frame rate of the input video stream.intThe height of the video stream in pixels.intThe width of the video stream in pixels.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(VideoFormat other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Video codec used in this video stream.setCodecBytes(com.google.protobuf.ByteString value) Video codec used in this video stream.setFrameRate(double value) The frame rate of the input video stream.setHeightPixels(int value) The height of the video stream in pixels.setWidthPixels(int value) The width of the video stream in pixels.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<VideoFormat.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<VideoFormat.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<VideoFormat.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<VideoFormat.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VideoFormat.Builder>
-
mergeFrom
public VideoFormat.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<VideoFormat.Builder>- Throws:
IOException
-
getCodec
Video codec used in this video stream.
string codec = 1;- Specified by:
getCodecin interfaceVideoFormatOrBuilder- Returns:
- The codec.
-
getCodecBytes
public com.google.protobuf.ByteString getCodecBytes()Video codec used in this video stream.
string codec = 1;- Specified by:
getCodecBytesin interfaceVideoFormatOrBuilder- Returns:
- The bytes for codec.
-
setCodec
Video codec used in this video stream.
string codec = 1;- Parameters:
value- The codec to set.- Returns:
- This builder for chaining.
-
clearCodec
Video codec used in this video stream.
string codec = 1;- Returns:
- This builder for chaining.
-
setCodecBytes
Video codec used in this video stream.
string codec = 1;- Parameters:
value- The bytes for codec to set.- Returns:
- This builder for chaining.
-
getWidthPixels
public int getWidthPixels()The width of the video stream in pixels.
int32 width_pixels = 2;- Specified by:
getWidthPixelsin interfaceVideoFormatOrBuilder- Returns:
- The widthPixels.
-
setWidthPixels
The width of the video stream in pixels.
int32 width_pixels = 2;- Parameters:
value- The widthPixels to set.- Returns:
- This builder for chaining.
-
clearWidthPixels
The width of the video stream in pixels.
int32 width_pixels = 2;- Returns:
- This builder for chaining.
-
getHeightPixels
public int getHeightPixels()The height of the video stream in pixels.
int32 height_pixels = 3;- Specified by:
getHeightPixelsin interfaceVideoFormatOrBuilder- Returns:
- The heightPixels.
-
setHeightPixels
The height of the video stream in pixels.
int32 height_pixels = 3;- Parameters:
value- The heightPixels to set.- Returns:
- This builder for chaining.
-
clearHeightPixels
The height of the video stream in pixels.
int32 height_pixels = 3;- Returns:
- This builder for chaining.
-
getFrameRate
public double getFrameRate()The frame rate of the input video stream.
double frame_rate = 4;- Specified by:
getFrameRatein interfaceVideoFormatOrBuilder- Returns:
- The frameRate.
-
setFrameRate
The frame rate of the input video stream.
double frame_rate = 4;- Parameters:
value- The frameRate to set.- Returns:
- This builder for chaining.
-
clearFrameRate
The frame rate of the input video stream.
double frame_rate = 4;- Returns:
- This builder for chaining.
-