com.volcengine.service.vod.model.business.Video Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: volcengine/vod/business/vod_workflow.proto
package com.volcengine.service.vod.model.business;
/**
* Protobuf type {@code Volcengine.Vod.Models.Business.Video}
*/
public final class Video extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.Video)
VideoOrBuilder {
private static final long serialVersionUID = 0L;
// Use Video.newBuilder() to construct.
private Video(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Video() {
res_ = "";
codec_ = "";
rateControlMode_ = "";
vsync_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Video();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Video(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
res_ = s;
break;
}
case 32: {
scaleType_ = input.readInt32();
break;
}
case 40: {
scaleWidth_ = input.readInt32();
break;
}
case 48: {
scaleHeight_ = input.readInt32();
break;
}
case 56: {
scaleShort_ = input.readInt32();
break;
}
case 64: {
scaleLong_ = input.readInt32();
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
codec_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
rateControlMode_ = s;
break;
}
case 88: {
maxBitrate_ = input.readInt32();
break;
}
case 96: {
bitrate_ = input.readInt32();
break;
}
case 109: {
crf_ = input.readFloat();
break;
}
case 120: {
maxFps_ = input.readInt32();
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
vsync_ = s;
break;
}
case 141: {
fps_ = input.readFloat();
break;
}
case 168: {
hDRMode_ = input.readInt32();
break;
}
case 176: {
scaleMode_ = input.readInt32();
break;
}
case 192: {
gopSize_ = input.readInt32();
break;
}
case 200: {
disableBFrame_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Video_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Video_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.Video.class, com.volcengine.service.vod.model.business.Video.Builder.class);
}
public static final int RES_FIELD_NUMBER = 1;
private volatile java.lang.Object res_;
/**
* string Res = 1;
* @return The res.
*/
@java.lang.Override
public java.lang.String getRes() {
java.lang.Object ref = res_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
res_ = s;
return s;
}
}
/**
* string Res = 1;
* @return The bytes for res.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResBytes() {
java.lang.Object ref = res_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
res_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCALETYPE_FIELD_NUMBER = 4;
private int scaleType_;
/**
* int32 ScaleType = 4;
* @return The scaleType.
*/
@java.lang.Override
public int getScaleType() {
return scaleType_;
}
public static final int SCALEMODE_FIELD_NUMBER = 22;
private int scaleMode_;
/**
* int32 ScaleMode = 22;
* @return The scaleMode.
*/
@java.lang.Override
public int getScaleMode() {
return scaleMode_;
}
public static final int SCALEWIDTH_FIELD_NUMBER = 5;
private int scaleWidth_;
/**
* int32 ScaleWidth = 5;
* @return The scaleWidth.
*/
@java.lang.Override
public int getScaleWidth() {
return scaleWidth_;
}
public static final int SCALEHEIGHT_FIELD_NUMBER = 6;
private int scaleHeight_;
/**
* int32 ScaleHeight = 6;
* @return The scaleHeight.
*/
@java.lang.Override
public int getScaleHeight() {
return scaleHeight_;
}
public static final int SCALESHORT_FIELD_NUMBER = 7;
private int scaleShort_;
/**
* int32 ScaleShort = 7;
* @return The scaleShort.
*/
@java.lang.Override
public int getScaleShort() {
return scaleShort_;
}
public static final int SCALELONG_FIELD_NUMBER = 8;
private int scaleLong_;
/**
* int32 ScaleLong = 8;
* @return The scaleLong.
*/
@java.lang.Override
public int getScaleLong() {
return scaleLong_;
}
public static final int CODEC_FIELD_NUMBER = 9;
private volatile java.lang.Object codec_;
/**
* string Codec = 9;
* @return The codec.
*/
@java.lang.Override
public java.lang.String getCodec() {
java.lang.Object ref = codec_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
codec_ = s;
return s;
}
}
/**
* string Codec = 9;
* @return The bytes for codec.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCodecBytes() {
java.lang.Object ref = codec_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codec_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RATECONTROLMODE_FIELD_NUMBER = 10;
private volatile java.lang.Object rateControlMode_;
/**
* string RateControlMode = 10;
* @return The rateControlMode.
*/
@java.lang.Override
public java.lang.String getRateControlMode() {
java.lang.Object ref = rateControlMode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rateControlMode_ = s;
return s;
}
}
/**
* string RateControlMode = 10;
* @return The bytes for rateControlMode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRateControlModeBytes() {
java.lang.Object ref = rateControlMode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rateControlMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAXBITRATE_FIELD_NUMBER = 11;
private int maxBitrate_;
/**
* int32 MaxBitrate = 11;
* @return The maxBitrate.
*/
@java.lang.Override
public int getMaxBitrate() {
return maxBitrate_;
}
public static final int BITRATE_FIELD_NUMBER = 12;
private int bitrate_;
/**
* int32 Bitrate = 12;
* @return The bitrate.
*/
@java.lang.Override
public int getBitrate() {
return bitrate_;
}
public static final int CRF_FIELD_NUMBER = 13;
private float crf_;
/**
* float Crf = 13;
* @return The crf.
*/
@java.lang.Override
public float getCrf() {
return crf_;
}
public static final int MAXFPS_FIELD_NUMBER = 15;
private int maxFps_;
/**
* int32 MaxFps = 15;
* @return The maxFps.
*/
@java.lang.Override
public int getMaxFps() {
return maxFps_;
}
public static final int VSYNC_FIELD_NUMBER = 16;
private volatile java.lang.Object vsync_;
/**
* string Vsync = 16;
* @return The vsync.
*/
@java.lang.Override
public java.lang.String getVsync() {
java.lang.Object ref = vsync_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
vsync_ = s;
return s;
}
}
/**
* string Vsync = 16;
* @return The bytes for vsync.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVsyncBytes() {
java.lang.Object ref = vsync_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
vsync_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FPS_FIELD_NUMBER = 17;
private float fps_;
/**
* float Fps = 17;
* @return The fps.
*/
@java.lang.Override
public float getFps() {
return fps_;
}
public static final int HDRMODE_FIELD_NUMBER = 21;
private int hDRMode_;
/**
* int32 HDRMode = 21;
* @return The hDRMode.
*/
@java.lang.Override
public int getHDRMode() {
return hDRMode_;
}
public static final int GOPSIZE_FIELD_NUMBER = 24;
private int gopSize_;
/**
* int32 GopSize = 24;
* @return The gopSize.
*/
@java.lang.Override
public int getGopSize() {
return gopSize_;
}
public static final int DISABLEBFRAME_FIELD_NUMBER = 25;
private boolean disableBFrame_;
/**
* bool DisableBFrame = 25;
* @return The disableBFrame.
*/
@java.lang.Override
public boolean getDisableBFrame() {
return disableBFrame_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(res_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, res_);
}
if (scaleType_ != 0) {
output.writeInt32(4, scaleType_);
}
if (scaleWidth_ != 0) {
output.writeInt32(5, scaleWidth_);
}
if (scaleHeight_ != 0) {
output.writeInt32(6, scaleHeight_);
}
if (scaleShort_ != 0) {
output.writeInt32(7, scaleShort_);
}
if (scaleLong_ != 0) {
output.writeInt32(8, scaleLong_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(codec_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, codec_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rateControlMode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, rateControlMode_);
}
if (maxBitrate_ != 0) {
output.writeInt32(11, maxBitrate_);
}
if (bitrate_ != 0) {
output.writeInt32(12, bitrate_);
}
if (java.lang.Float.floatToRawIntBits(crf_) != 0) {
output.writeFloat(13, crf_);
}
if (maxFps_ != 0) {
output.writeInt32(15, maxFps_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vsync_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, vsync_);
}
if (java.lang.Float.floatToRawIntBits(fps_) != 0) {
output.writeFloat(17, fps_);
}
if (hDRMode_ != 0) {
output.writeInt32(21, hDRMode_);
}
if (scaleMode_ != 0) {
output.writeInt32(22, scaleMode_);
}
if (gopSize_ != 0) {
output.writeInt32(24, gopSize_);
}
if (disableBFrame_ != false) {
output.writeBool(25, disableBFrame_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(res_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, res_);
}
if (scaleType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, scaleType_);
}
if (scaleWidth_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, scaleWidth_);
}
if (scaleHeight_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, scaleHeight_);
}
if (scaleShort_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, scaleShort_);
}
if (scaleLong_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, scaleLong_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(codec_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, codec_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rateControlMode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, rateControlMode_);
}
if (maxBitrate_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, maxBitrate_);
}
if (bitrate_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, bitrate_);
}
if (java.lang.Float.floatToRawIntBits(crf_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(13, crf_);
}
if (maxFps_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(15, maxFps_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vsync_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, vsync_);
}
if (java.lang.Float.floatToRawIntBits(fps_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(17, fps_);
}
if (hDRMode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(21, hDRMode_);
}
if (scaleMode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(22, scaleMode_);
}
if (gopSize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(24, gopSize_);
}
if (disableBFrame_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(25, disableBFrame_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.volcengine.service.vod.model.business.Video)) {
return super.equals(obj);
}
com.volcengine.service.vod.model.business.Video other = (com.volcengine.service.vod.model.business.Video) obj;
if (!getRes()
.equals(other.getRes())) return false;
if (getScaleType()
!= other.getScaleType()) return false;
if (getScaleMode()
!= other.getScaleMode()) return false;
if (getScaleWidth()
!= other.getScaleWidth()) return false;
if (getScaleHeight()
!= other.getScaleHeight()) return false;
if (getScaleShort()
!= other.getScaleShort()) return false;
if (getScaleLong()
!= other.getScaleLong()) return false;
if (!getCodec()
.equals(other.getCodec())) return false;
if (!getRateControlMode()
.equals(other.getRateControlMode())) return false;
if (getMaxBitrate()
!= other.getMaxBitrate()) return false;
if (getBitrate()
!= other.getBitrate()) return false;
if (java.lang.Float.floatToIntBits(getCrf())
!= java.lang.Float.floatToIntBits(
other.getCrf())) return false;
if (getMaxFps()
!= other.getMaxFps()) return false;
if (!getVsync()
.equals(other.getVsync())) return false;
if (java.lang.Float.floatToIntBits(getFps())
!= java.lang.Float.floatToIntBits(
other.getFps())) return false;
if (getHDRMode()
!= other.getHDRMode()) return false;
if (getGopSize()
!= other.getGopSize()) return false;
if (getDisableBFrame()
!= other.getDisableBFrame()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RES_FIELD_NUMBER;
hash = (53 * hash) + getRes().hashCode();
hash = (37 * hash) + SCALETYPE_FIELD_NUMBER;
hash = (53 * hash) + getScaleType();
hash = (37 * hash) + SCALEMODE_FIELD_NUMBER;
hash = (53 * hash) + getScaleMode();
hash = (37 * hash) + SCALEWIDTH_FIELD_NUMBER;
hash = (53 * hash) + getScaleWidth();
hash = (37 * hash) + SCALEHEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getScaleHeight();
hash = (37 * hash) + SCALESHORT_FIELD_NUMBER;
hash = (53 * hash) + getScaleShort();
hash = (37 * hash) + SCALELONG_FIELD_NUMBER;
hash = (53 * hash) + getScaleLong();
hash = (37 * hash) + CODEC_FIELD_NUMBER;
hash = (53 * hash) + getCodec().hashCode();
hash = (37 * hash) + RATECONTROLMODE_FIELD_NUMBER;
hash = (53 * hash) + getRateControlMode().hashCode();
hash = (37 * hash) + MAXBITRATE_FIELD_NUMBER;
hash = (53 * hash) + getMaxBitrate();
hash = (37 * hash) + BITRATE_FIELD_NUMBER;
hash = (53 * hash) + getBitrate();
hash = (37 * hash) + CRF_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getCrf());
hash = (37 * hash) + MAXFPS_FIELD_NUMBER;
hash = (53 * hash) + getMaxFps();
hash = (37 * hash) + VSYNC_FIELD_NUMBER;
hash = (53 * hash) + getVsync().hashCode();
hash = (37 * hash) + FPS_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getFps());
hash = (37 * hash) + HDRMODE_FIELD_NUMBER;
hash = (53 * hash) + getHDRMode();
hash = (37 * hash) + GOPSIZE_FIELD_NUMBER;
hash = (53 * hash) + getGopSize();
hash = (37 * hash) + DISABLEBFRAME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableBFrame());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.volcengine.service.vod.model.business.Video parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.Video parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.Video parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.Video parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.Video parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.Video parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.Video parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.Video parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.Video parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.Video parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.Video parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.Video parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.volcengine.service.vod.model.business.Video prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Volcengine.Vod.Models.Business.Video}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.Video)
com.volcengine.service.vod.model.business.VideoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Video_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Video_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.Video.class, com.volcengine.service.vod.model.business.Video.Builder.class);
}
// Construct using com.volcengine.service.vod.model.business.Video.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
res_ = "";
scaleType_ = 0;
scaleMode_ = 0;
scaleWidth_ = 0;
scaleHeight_ = 0;
scaleShort_ = 0;
scaleLong_ = 0;
codec_ = "";
rateControlMode_ = "";
maxBitrate_ = 0;
bitrate_ = 0;
crf_ = 0F;
maxFps_ = 0;
vsync_ = "";
fps_ = 0F;
hDRMode_ = 0;
gopSize_ = 0;
disableBFrame_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Video_descriptor;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.Video getDefaultInstanceForType() {
return com.volcengine.service.vod.model.business.Video.getDefaultInstance();
}
@java.lang.Override
public com.volcengine.service.vod.model.business.Video build() {
com.volcengine.service.vod.model.business.Video result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.Video buildPartial() {
com.volcengine.service.vod.model.business.Video result = new com.volcengine.service.vod.model.business.Video(this);
result.res_ = res_;
result.scaleType_ = scaleType_;
result.scaleMode_ = scaleMode_;
result.scaleWidth_ = scaleWidth_;
result.scaleHeight_ = scaleHeight_;
result.scaleShort_ = scaleShort_;
result.scaleLong_ = scaleLong_;
result.codec_ = codec_;
result.rateControlMode_ = rateControlMode_;
result.maxBitrate_ = maxBitrate_;
result.bitrate_ = bitrate_;
result.crf_ = crf_;
result.maxFps_ = maxFps_;
result.vsync_ = vsync_;
result.fps_ = fps_;
result.hDRMode_ = hDRMode_;
result.gopSize_ = gopSize_;
result.disableBFrame_ = disableBFrame_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.volcengine.service.vod.model.business.Video) {
return mergeFrom((com.volcengine.service.vod.model.business.Video)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.volcengine.service.vod.model.business.Video other) {
if (other == com.volcengine.service.vod.model.business.Video.getDefaultInstance()) return this;
if (!other.getRes().isEmpty()) {
res_ = other.res_;
onChanged();
}
if (other.getScaleType() != 0) {
setScaleType(other.getScaleType());
}
if (other.getScaleMode() != 0) {
setScaleMode(other.getScaleMode());
}
if (other.getScaleWidth() != 0) {
setScaleWidth(other.getScaleWidth());
}
if (other.getScaleHeight() != 0) {
setScaleHeight(other.getScaleHeight());
}
if (other.getScaleShort() != 0) {
setScaleShort(other.getScaleShort());
}
if (other.getScaleLong() != 0) {
setScaleLong(other.getScaleLong());
}
if (!other.getCodec().isEmpty()) {
codec_ = other.codec_;
onChanged();
}
if (!other.getRateControlMode().isEmpty()) {
rateControlMode_ = other.rateControlMode_;
onChanged();
}
if (other.getMaxBitrate() != 0) {
setMaxBitrate(other.getMaxBitrate());
}
if (other.getBitrate() != 0) {
setBitrate(other.getBitrate());
}
if (other.getCrf() != 0F) {
setCrf(other.getCrf());
}
if (other.getMaxFps() != 0) {
setMaxFps(other.getMaxFps());
}
if (!other.getVsync().isEmpty()) {
vsync_ = other.vsync_;
onChanged();
}
if (other.getFps() != 0F) {
setFps(other.getFps());
}
if (other.getHDRMode() != 0) {
setHDRMode(other.getHDRMode());
}
if (other.getGopSize() != 0) {
setGopSize(other.getGopSize());
}
if (other.getDisableBFrame() != false) {
setDisableBFrame(other.getDisableBFrame());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.volcengine.service.vod.model.business.Video parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.volcengine.service.vod.model.business.Video) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object res_ = "";
/**
* string Res = 1;
* @return The res.
*/
public java.lang.String getRes() {
java.lang.Object ref = res_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
res_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string Res = 1;
* @return The bytes for res.
*/
public com.google.protobuf.ByteString
getResBytes() {
java.lang.Object ref = res_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
res_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string Res = 1;
* @param value The res to set.
* @return This builder for chaining.
*/
public Builder setRes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
return this;
}
/**
* string Res = 1;
* @return This builder for chaining.
*/
public Builder clearRes() {
res_ = getDefaultInstance().getRes();
onChanged();
return this;
}
/**
* string Res = 1;
* @param value The bytes for res to set.
* @return This builder for chaining.
*/
public Builder setResBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
res_ = value;
onChanged();
return this;
}
private int scaleType_ ;
/**
* int32 ScaleType = 4;
* @return The scaleType.
*/
@java.lang.Override
public int getScaleType() {
return scaleType_;
}
/**
* int32 ScaleType = 4;
* @param value The scaleType to set.
* @return This builder for chaining.
*/
public Builder setScaleType(int value) {
scaleType_ = value;
onChanged();
return this;
}
/**
* int32 ScaleType = 4;
* @return This builder for chaining.
*/
public Builder clearScaleType() {
scaleType_ = 0;
onChanged();
return this;
}
private int scaleMode_ ;
/**
* int32 ScaleMode = 22;
* @return The scaleMode.
*/
@java.lang.Override
public int getScaleMode() {
return scaleMode_;
}
/**
* int32 ScaleMode = 22;
* @param value The scaleMode to set.
* @return This builder for chaining.
*/
public Builder setScaleMode(int value) {
scaleMode_ = value;
onChanged();
return this;
}
/**
* int32 ScaleMode = 22;
* @return This builder for chaining.
*/
public Builder clearScaleMode() {
scaleMode_ = 0;
onChanged();
return this;
}
private int scaleWidth_ ;
/**
* int32 ScaleWidth = 5;
* @return The scaleWidth.
*/
@java.lang.Override
public int getScaleWidth() {
return scaleWidth_;
}
/**
* int32 ScaleWidth = 5;
* @param value The scaleWidth to set.
* @return This builder for chaining.
*/
public Builder setScaleWidth(int value) {
scaleWidth_ = value;
onChanged();
return this;
}
/**
* int32 ScaleWidth = 5;
* @return This builder for chaining.
*/
public Builder clearScaleWidth() {
scaleWidth_ = 0;
onChanged();
return this;
}
private int scaleHeight_ ;
/**
* int32 ScaleHeight = 6;
* @return The scaleHeight.
*/
@java.lang.Override
public int getScaleHeight() {
return scaleHeight_;
}
/**
* int32 ScaleHeight = 6;
* @param value The scaleHeight to set.
* @return This builder for chaining.
*/
public Builder setScaleHeight(int value) {
scaleHeight_ = value;
onChanged();
return this;
}
/**
* int32 ScaleHeight = 6;
* @return This builder for chaining.
*/
public Builder clearScaleHeight() {
scaleHeight_ = 0;
onChanged();
return this;
}
private int scaleShort_ ;
/**
* int32 ScaleShort = 7;
* @return The scaleShort.
*/
@java.lang.Override
public int getScaleShort() {
return scaleShort_;
}
/**
* int32 ScaleShort = 7;
* @param value The scaleShort to set.
* @return This builder for chaining.
*/
public Builder setScaleShort(int value) {
scaleShort_ = value;
onChanged();
return this;
}
/**
* int32 ScaleShort = 7;
* @return This builder for chaining.
*/
public Builder clearScaleShort() {
scaleShort_ = 0;
onChanged();
return this;
}
private int scaleLong_ ;
/**
* int32 ScaleLong = 8;
* @return The scaleLong.
*/
@java.lang.Override
public int getScaleLong() {
return scaleLong_;
}
/**
* int32 ScaleLong = 8;
* @param value The scaleLong to set.
* @return This builder for chaining.
*/
public Builder setScaleLong(int value) {
scaleLong_ = value;
onChanged();
return this;
}
/**
* int32 ScaleLong = 8;
* @return This builder for chaining.
*/
public Builder clearScaleLong() {
scaleLong_ = 0;
onChanged();
return this;
}
private java.lang.Object codec_ = "";
/**
* string Codec = 9;
* @return The codec.
*/
public java.lang.String getCodec() {
java.lang.Object ref = codec_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
codec_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string Codec = 9;
* @return The bytes for codec.
*/
public com.google.protobuf.ByteString
getCodecBytes() {
java.lang.Object ref = codec_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codec_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string Codec = 9;
* @param value The codec to set.
* @return This builder for chaining.
*/
public Builder setCodec(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
codec_ = value;
onChanged();
return this;
}
/**
* string Codec = 9;
* @return This builder for chaining.
*/
public Builder clearCodec() {
codec_ = getDefaultInstance().getCodec();
onChanged();
return this;
}
/**
* string Codec = 9;
* @param value The bytes for codec to set.
* @return This builder for chaining.
*/
public Builder setCodecBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
codec_ = value;
onChanged();
return this;
}
private java.lang.Object rateControlMode_ = "";
/**
* string RateControlMode = 10;
* @return The rateControlMode.
*/
public java.lang.String getRateControlMode() {
java.lang.Object ref = rateControlMode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rateControlMode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string RateControlMode = 10;
* @return The bytes for rateControlMode.
*/
public com.google.protobuf.ByteString
getRateControlModeBytes() {
java.lang.Object ref = rateControlMode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rateControlMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string RateControlMode = 10;
* @param value The rateControlMode to set.
* @return This builder for chaining.
*/
public Builder setRateControlMode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rateControlMode_ = value;
onChanged();
return this;
}
/**
* string RateControlMode = 10;
* @return This builder for chaining.
*/
public Builder clearRateControlMode() {
rateControlMode_ = getDefaultInstance().getRateControlMode();
onChanged();
return this;
}
/**
* string RateControlMode = 10;
* @param value The bytes for rateControlMode to set.
* @return This builder for chaining.
*/
public Builder setRateControlModeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rateControlMode_ = value;
onChanged();
return this;
}
private int maxBitrate_ ;
/**
* int32 MaxBitrate = 11;
* @return The maxBitrate.
*/
@java.lang.Override
public int getMaxBitrate() {
return maxBitrate_;
}
/**
* int32 MaxBitrate = 11;
* @param value The maxBitrate to set.
* @return This builder for chaining.
*/
public Builder setMaxBitrate(int value) {
maxBitrate_ = value;
onChanged();
return this;
}
/**
* int32 MaxBitrate = 11;
* @return This builder for chaining.
*/
public Builder clearMaxBitrate() {
maxBitrate_ = 0;
onChanged();
return this;
}
private int bitrate_ ;
/**
* int32 Bitrate = 12;
* @return The bitrate.
*/
@java.lang.Override
public int getBitrate() {
return bitrate_;
}
/**
* int32 Bitrate = 12;
* @param value The bitrate to set.
* @return This builder for chaining.
*/
public Builder setBitrate(int value) {
bitrate_ = value;
onChanged();
return this;
}
/**
* int32 Bitrate = 12;
* @return This builder for chaining.
*/
public Builder clearBitrate() {
bitrate_ = 0;
onChanged();
return this;
}
private float crf_ ;
/**
* float Crf = 13;
* @return The crf.
*/
@java.lang.Override
public float getCrf() {
return crf_;
}
/**
* float Crf = 13;
* @param value The crf to set.
* @return This builder for chaining.
*/
public Builder setCrf(float value) {
crf_ = value;
onChanged();
return this;
}
/**
* float Crf = 13;
* @return This builder for chaining.
*/
public Builder clearCrf() {
crf_ = 0F;
onChanged();
return this;
}
private int maxFps_ ;
/**
* int32 MaxFps = 15;
* @return The maxFps.
*/
@java.lang.Override
public int getMaxFps() {
return maxFps_;
}
/**
* int32 MaxFps = 15;
* @param value The maxFps to set.
* @return This builder for chaining.
*/
public Builder setMaxFps(int value) {
maxFps_ = value;
onChanged();
return this;
}
/**
* int32 MaxFps = 15;
* @return This builder for chaining.
*/
public Builder clearMaxFps() {
maxFps_ = 0;
onChanged();
return this;
}
private java.lang.Object vsync_ = "";
/**
* string Vsync = 16;
* @return The vsync.
*/
public java.lang.String getVsync() {
java.lang.Object ref = vsync_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
vsync_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string Vsync = 16;
* @return The bytes for vsync.
*/
public com.google.protobuf.ByteString
getVsyncBytes() {
java.lang.Object ref = vsync_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
vsync_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string Vsync = 16;
* @param value The vsync to set.
* @return This builder for chaining.
*/
public Builder setVsync(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
vsync_ = value;
onChanged();
return this;
}
/**
* string Vsync = 16;
* @return This builder for chaining.
*/
public Builder clearVsync() {
vsync_ = getDefaultInstance().getVsync();
onChanged();
return this;
}
/**
* string Vsync = 16;
* @param value The bytes for vsync to set.
* @return This builder for chaining.
*/
public Builder setVsyncBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
vsync_ = value;
onChanged();
return this;
}
private float fps_ ;
/**
* float Fps = 17;
* @return The fps.
*/
@java.lang.Override
public float getFps() {
return fps_;
}
/**
* float Fps = 17;
* @param value The fps to set.
* @return This builder for chaining.
*/
public Builder setFps(float value) {
fps_ = value;
onChanged();
return this;
}
/**
* float Fps = 17;
* @return This builder for chaining.
*/
public Builder clearFps() {
fps_ = 0F;
onChanged();
return this;
}
private int hDRMode_ ;
/**
* int32 HDRMode = 21;
* @return The hDRMode.
*/
@java.lang.Override
public int getHDRMode() {
return hDRMode_;
}
/**
* int32 HDRMode = 21;
* @param value The hDRMode to set.
* @return This builder for chaining.
*/
public Builder setHDRMode(int value) {
hDRMode_ = value;
onChanged();
return this;
}
/**
* int32 HDRMode = 21;
* @return This builder for chaining.
*/
public Builder clearHDRMode() {
hDRMode_ = 0;
onChanged();
return this;
}
private int gopSize_ ;
/**
* int32 GopSize = 24;
* @return The gopSize.
*/
@java.lang.Override
public int getGopSize() {
return gopSize_;
}
/**
* int32 GopSize = 24;
* @param value The gopSize to set.
* @return This builder for chaining.
*/
public Builder setGopSize(int value) {
gopSize_ = value;
onChanged();
return this;
}
/**
* int32 GopSize = 24;
* @return This builder for chaining.
*/
public Builder clearGopSize() {
gopSize_ = 0;
onChanged();
return this;
}
private boolean disableBFrame_ ;
/**
* bool DisableBFrame = 25;
* @return The disableBFrame.
*/
@java.lang.Override
public boolean getDisableBFrame() {
return disableBFrame_;
}
/**
* bool DisableBFrame = 25;
* @param value The disableBFrame to set.
* @return This builder for chaining.
*/
public Builder setDisableBFrame(boolean value) {
disableBFrame_ = value;
onChanged();
return this;
}
/**
* bool DisableBFrame = 25;
* @return This builder for chaining.
*/
public Builder clearDisableBFrame() {
disableBFrame_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Volcengine.Vod.Models.Business.Video)
}
// @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.Video)
private static final com.volcengine.service.vod.model.business.Video DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.Video();
}
public static com.volcengine.service.vod.model.business.Video getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
© 2015 - 2024 Weber Informatics LLC | Privacy Policy