public static final class VideoFormat.Builder extends GeneratedMessage.Builder<VideoFormat.Builder> implements VideoFormatOrBuilderProperties of the video format.
Protobuf type google.cloud.video.livestream.v1.VideoFormat
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > VideoFormat.BuilderImplements
VideoFormatOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public VideoFormat build()| Returns | |
|---|---|
| Type | Description |
VideoFormat |
|
buildPartial()
public VideoFormat buildPartial()| Returns | |
|---|---|
| Type | Description |
VideoFormat |
|
clear()
public VideoFormat.Builder clear()| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
|
clearCodec()
public VideoFormat.Builder clearCodec()Video codec used in this video stream.
string codec = 1;
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
This builder for chaining. |
clearFrameRate()
public VideoFormat.Builder clearFrameRate()The frame rate of the input video stream.
double frame_rate = 4;
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
This builder for chaining. |
clearHeightPixels()
public VideoFormat.Builder clearHeightPixels()The height of the video stream in pixels.
int32 height_pixels = 3;
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
This builder for chaining. |
clearWidthPixels()
public VideoFormat.Builder clearWidthPixels()The width of the video stream in pixels.
int32 width_pixels = 2;
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
This builder for chaining. |
getCodec()
public String getCodec()Video codec used in this video stream.
string codec = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The codec. |
getCodecBytes()
public ByteString getCodecBytes()Video codec used in this video stream.
string codec = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for codec. |
getDefaultInstanceForType()
public VideoFormat getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
VideoFormat |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFrameRate()
public double getFrameRate()The frame rate of the input video stream.
double frame_rate = 4;
| Returns | |
|---|---|
| Type | Description |
double |
The frameRate. |
getHeightPixels()
public int getHeightPixels()The height of the video stream in pixels.
int32 height_pixels = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The heightPixels. |
getWidthPixels()
public int getWidthPixels()The width of the video stream in pixels.
int32 width_pixels = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The widthPixels. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(VideoFormat other)
public VideoFormat.Builder mergeFrom(VideoFormat other)| Parameter | |
|---|---|
| Name | Description |
other |
VideoFormat |
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VideoFormat.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public VideoFormat.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
|
setCodec(String value)
public VideoFormat.Builder setCodec(String value)Video codec used in this video stream.
string codec = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe codec to set. |
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
This builder for chaining. |
setCodecBytes(ByteString value)
public VideoFormat.Builder setCodecBytes(ByteString value)Video codec used in this video stream.
string codec = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for codec to set. |
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
This builder for chaining. |
setFrameRate(double value)
public VideoFormat.Builder setFrameRate(double value)The frame rate of the input video stream.
double frame_rate = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe frameRate to set. |
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
This builder for chaining. |
setHeightPixels(int value)
public VideoFormat.Builder setHeightPixels(int value)The height of the video stream in pixels.
int32 height_pixels = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe heightPixels to set. |
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
This builder for chaining. |
setWidthPixels(int value)
public VideoFormat.Builder setWidthPixels(int value)The width of the video stream in pixels.
int32 width_pixels = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe widthPixels to set. |
| Returns | |
|---|---|
| Type | Description |
VideoFormat.Builder |
This builder for chaining. |