com.volcengine.service.vod.model.business.TranscodeVideoOverride 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.TranscodeVideoOverride}
*/
public final class TranscodeVideoOverride extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.TranscodeVideoOverride)
TranscodeVideoOverrideOrBuilder {
private static final long serialVersionUID = 0L;
// Use TranscodeVideoOverride.newBuilder() to construct.
private TranscodeVideoOverride(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TranscodeVideoOverride() {
templateId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
outputIndex_ = emptyIntList();
fileName_ = "";
logoTemplateId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TranscodeVideoOverride();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TranscodeVideoOverride(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
templateId_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
templateId_.add(s);
break;
}
case 18: {
com.volcengine.service.vod.model.business.Clip.Builder subBuilder = null;
if (clip_ != null) {
subBuilder = clip_.toBuilder();
}
clip_ = input.readMessage(com.volcengine.service.vod.model.business.Clip.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clip_);
clip_ = subBuilder.buildPartial();
}
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
outputIndex_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
outputIndex_.addInt(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
outputIndex_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
outputIndex_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
fileName_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
logoTemplateId_ = s;
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
templateId_ = templateId_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
outputIndex_.makeImmutable(); // C
}
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_TranscodeVideoOverride_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_TranscodeVideoOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.TranscodeVideoOverride.class, com.volcengine.service.vod.model.business.TranscodeVideoOverride.Builder.class);
}
public static final int TEMPLATEID_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList templateId_;
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @return A list containing the templateId.
*/
public com.google.protobuf.ProtocolStringList
getTemplateIdList() {
return templateId_;
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @return The count of templateId.
*/
public int getTemplateIdCount() {
return templateId_.size();
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @param index The index of the element to return.
* @return The templateId at the given index.
*/
public java.lang.String getTemplateId(int index) {
return templateId_.get(index);
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @param index The index of the value to return.
* @return The bytes of the templateId at the given index.
*/
public com.google.protobuf.ByteString
getTemplateIdBytes(int index) {
return templateId_.getByteString(index);
}
public static final int CLIP_FIELD_NUMBER = 2;
private com.volcengine.service.vod.model.business.Clip clip_;
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
* @return Whether the clip field is set.
*/
@java.lang.Override
public boolean hasClip() {
return clip_ != null;
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
* @return The clip.
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.Clip getClip() {
return clip_ == null ? com.volcengine.service.vod.model.business.Clip.getDefaultInstance() : clip_;
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.ClipOrBuilder getClipOrBuilder() {
return getClip();
}
public static final int OUTPUTINDEX_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.IntList outputIndex_;
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @return A list containing the outputIndex.
*/
@java.lang.Override
public java.util.List
getOutputIndexList() {
return outputIndex_;
}
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @return The count of outputIndex.
*/
public int getOutputIndexCount() {
return outputIndex_.size();
}
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @param index The index of the element to return.
* @return The outputIndex at the given index.
*/
public int getOutputIndex(int index) {
return outputIndex_.getInt(index);
}
private int outputIndexMemoizedSerializedSize = -1;
public static final int FILENAME_FIELD_NUMBER = 4;
private volatile java.lang.Object fileName_;
/**
*
* 文件名
*
*
* string FileName = 4;
* @return The fileName.
*/
@java.lang.Override
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
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();
fileName_ = s;
return s;
}
}
/**
*
* 文件名
*
*
* string FileName = 4;
* @return The bytes for fileName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOGOTEMPLATEID_FIELD_NUMBER = 5;
private volatile java.lang.Object logoTemplateId_;
/**
*
* 指定水印模板Id
*
*
* string LogoTemplateId = 5;
* @return The logoTemplateId.
*/
@java.lang.Override
public java.lang.String getLogoTemplateId() {
java.lang.Object ref = logoTemplateId_;
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();
logoTemplateId_ = s;
return s;
}
}
/**
*
* 指定水印模板Id
*
*
* string LogoTemplateId = 5;
* @return The bytes for logoTemplateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogoTemplateIdBytes() {
java.lang.Object ref = logoTemplateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logoTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 {
getSerializedSize();
for (int i = 0; i < templateId_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, templateId_.getRaw(i));
}
if (clip_ != null) {
output.writeMessage(2, getClip());
}
if (getOutputIndexList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(outputIndexMemoizedSerializedSize);
}
for (int i = 0; i < outputIndex_.size(); i++) {
output.writeInt32NoTag(outputIndex_.getInt(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fileName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logoTemplateId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, logoTemplateId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < templateId_.size(); i++) {
dataSize += computeStringSizeNoTag(templateId_.getRaw(i));
}
size += dataSize;
size += 1 * getTemplateIdList().size();
}
if (clip_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getClip());
}
{
int dataSize = 0;
for (int i = 0; i < outputIndex_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(outputIndex_.getInt(i));
}
size += dataSize;
if (!getOutputIndexList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
outputIndexMemoizedSerializedSize = dataSize;
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fileName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logoTemplateId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, logoTemplateId_);
}
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.TranscodeVideoOverride)) {
return super.equals(obj);
}
com.volcengine.service.vod.model.business.TranscodeVideoOverride other = (com.volcengine.service.vod.model.business.TranscodeVideoOverride) obj;
if (!getTemplateIdList()
.equals(other.getTemplateIdList())) return false;
if (hasClip() != other.hasClip()) return false;
if (hasClip()) {
if (!getClip()
.equals(other.getClip())) return false;
}
if (!getOutputIndexList()
.equals(other.getOutputIndexList())) return false;
if (!getFileName()
.equals(other.getFileName())) return false;
if (!getLogoTemplateId()
.equals(other.getLogoTemplateId())) 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();
if (getTemplateIdCount() > 0) {
hash = (37 * hash) + TEMPLATEID_FIELD_NUMBER;
hash = (53 * hash) + getTemplateIdList().hashCode();
}
if (hasClip()) {
hash = (37 * hash) + CLIP_FIELD_NUMBER;
hash = (53 * hash) + getClip().hashCode();
}
if (getOutputIndexCount() > 0) {
hash = (37 * hash) + OUTPUTINDEX_FIELD_NUMBER;
hash = (53 * hash) + getOutputIndexList().hashCode();
}
hash = (37 * hash) + FILENAME_FIELD_NUMBER;
hash = (53 * hash) + getFileName().hashCode();
hash = (37 * hash) + LOGOTEMPLATEID_FIELD_NUMBER;
hash = (53 * hash) + getLogoTemplateId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.volcengine.service.vod.model.business.TranscodeVideoOverride parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.TranscodeVideoOverride 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.TranscodeVideoOverride parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.TranscodeVideoOverride 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.TranscodeVideoOverride parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.TranscodeVideoOverride 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.TranscodeVideoOverride 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.TranscodeVideoOverride 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.TranscodeVideoOverride 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.TranscodeVideoOverride 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.TranscodeVideoOverride 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.TranscodeVideoOverride 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.TranscodeVideoOverride 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.TranscodeVideoOverride}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.TranscodeVideoOverride)
com.volcengine.service.vod.model.business.TranscodeVideoOverrideOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_TranscodeVideoOverride_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_TranscodeVideoOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.TranscodeVideoOverride.class, com.volcengine.service.vod.model.business.TranscodeVideoOverride.Builder.class);
}
// Construct using com.volcengine.service.vod.model.business.TranscodeVideoOverride.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();
templateId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (clipBuilder_ == null) {
clip_ = null;
} else {
clip_ = null;
clipBuilder_ = null;
}
outputIndex_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
fileName_ = "";
logoTemplateId_ = "";
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_TranscodeVideoOverride_descriptor;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.TranscodeVideoOverride getDefaultInstanceForType() {
return com.volcengine.service.vod.model.business.TranscodeVideoOverride.getDefaultInstance();
}
@java.lang.Override
public com.volcengine.service.vod.model.business.TranscodeVideoOverride build() {
com.volcengine.service.vod.model.business.TranscodeVideoOverride result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.TranscodeVideoOverride buildPartial() {
com.volcengine.service.vod.model.business.TranscodeVideoOverride result = new com.volcengine.service.vod.model.business.TranscodeVideoOverride(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
templateId_ = templateId_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.templateId_ = templateId_;
if (clipBuilder_ == null) {
result.clip_ = clip_;
} else {
result.clip_ = clipBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
outputIndex_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.outputIndex_ = outputIndex_;
result.fileName_ = fileName_;
result.logoTemplateId_ = logoTemplateId_;
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.TranscodeVideoOverride) {
return mergeFrom((com.volcengine.service.vod.model.business.TranscodeVideoOverride)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.volcengine.service.vod.model.business.TranscodeVideoOverride other) {
if (other == com.volcengine.service.vod.model.business.TranscodeVideoOverride.getDefaultInstance()) return this;
if (!other.templateId_.isEmpty()) {
if (templateId_.isEmpty()) {
templateId_ = other.templateId_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTemplateIdIsMutable();
templateId_.addAll(other.templateId_);
}
onChanged();
}
if (other.hasClip()) {
mergeClip(other.getClip());
}
if (!other.outputIndex_.isEmpty()) {
if (outputIndex_.isEmpty()) {
outputIndex_ = other.outputIndex_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureOutputIndexIsMutable();
outputIndex_.addAll(other.outputIndex_);
}
onChanged();
}
if (!other.getFileName().isEmpty()) {
fileName_ = other.fileName_;
onChanged();
}
if (!other.getLogoTemplateId().isEmpty()) {
logoTemplateId_ = other.logoTemplateId_;
onChanged();
}
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.TranscodeVideoOverride parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.volcengine.service.vod.model.business.TranscodeVideoOverride) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList templateId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTemplateIdIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
templateId_ = new com.google.protobuf.LazyStringArrayList(templateId_);
bitField0_ |= 0x00000001;
}
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @return A list containing the templateId.
*/
public com.google.protobuf.ProtocolStringList
getTemplateIdList() {
return templateId_.getUnmodifiableView();
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @return The count of templateId.
*/
public int getTemplateIdCount() {
return templateId_.size();
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @param index The index of the element to return.
* @return The templateId at the given index.
*/
public java.lang.String getTemplateId(int index) {
return templateId_.get(index);
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @param index The index of the value to return.
* @return The bytes of the templateId at the given index.
*/
public com.google.protobuf.ByteString
getTemplateIdBytes(int index) {
return templateId_.getByteString(index);
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @param index The index to set the value at.
* @param value The templateId to set.
* @return This builder for chaining.
*/
public Builder setTemplateId(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTemplateIdIsMutable();
templateId_.set(index, value);
onChanged();
return this;
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @param value The templateId to add.
* @return This builder for chaining.
*/
public Builder addTemplateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTemplateIdIsMutable();
templateId_.add(value);
onChanged();
return this;
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @param values The templateId to add.
* @return This builder for chaining.
*/
public Builder addAllTemplateId(
java.lang.Iterable values) {
ensureTemplateIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, templateId_);
onChanged();
return this;
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @return This builder for chaining.
*/
public Builder clearTemplateId() {
templateId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* 被覆盖的视频模板Id, 支持ALL
*
*
* repeated string TemplateId = 1;
* @param value The bytes of the templateId to add.
* @return This builder for chaining.
*/
public Builder addTemplateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTemplateIdIsMutable();
templateId_.add(value);
onChanged();
return this;
}
private com.volcengine.service.vod.model.business.Clip clip_;
private com.google.protobuf.SingleFieldBuilderV3<
com.volcengine.service.vod.model.business.Clip, com.volcengine.service.vod.model.business.Clip.Builder, com.volcengine.service.vod.model.business.ClipOrBuilder> clipBuilder_;
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
* @return Whether the clip field is set.
*/
public boolean hasClip() {
return clipBuilder_ != null || clip_ != null;
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
* @return The clip.
*/
public com.volcengine.service.vod.model.business.Clip getClip() {
if (clipBuilder_ == null) {
return clip_ == null ? com.volcengine.service.vod.model.business.Clip.getDefaultInstance() : clip_;
} else {
return clipBuilder_.getMessage();
}
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
*/
public Builder setClip(com.volcengine.service.vod.model.business.Clip value) {
if (clipBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clip_ = value;
onChanged();
} else {
clipBuilder_.setMessage(value);
}
return this;
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
*/
public Builder setClip(
com.volcengine.service.vod.model.business.Clip.Builder builderForValue) {
if (clipBuilder_ == null) {
clip_ = builderForValue.build();
onChanged();
} else {
clipBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
*/
public Builder mergeClip(com.volcengine.service.vod.model.business.Clip value) {
if (clipBuilder_ == null) {
if (clip_ != null) {
clip_ =
com.volcengine.service.vod.model.business.Clip.newBuilder(clip_).mergeFrom(value).buildPartial();
} else {
clip_ = value;
}
onChanged();
} else {
clipBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
*/
public Builder clearClip() {
if (clipBuilder_ == null) {
clip_ = null;
onChanged();
} else {
clip_ = null;
clipBuilder_ = null;
}
return this;
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
*/
public com.volcengine.service.vod.model.business.Clip.Builder getClipBuilder() {
onChanged();
return getClipFieldBuilder().getBuilder();
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
*/
public com.volcengine.service.vod.model.business.ClipOrBuilder getClipOrBuilder() {
if (clipBuilder_ != null) {
return clipBuilder_.getMessageOrBuilder();
} else {
return clip_ == null ?
com.volcengine.service.vod.model.business.Clip.getDefaultInstance() : clip_;
}
}
/**
*
* 裁剪参数
*
*
* .Volcengine.Vod.Models.Business.Clip Clip = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.volcengine.service.vod.model.business.Clip, com.volcengine.service.vod.model.business.Clip.Builder, com.volcengine.service.vod.model.business.ClipOrBuilder>
getClipFieldBuilder() {
if (clipBuilder_ == null) {
clipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.volcengine.service.vod.model.business.Clip, com.volcengine.service.vod.model.business.Clip.Builder, com.volcengine.service.vod.model.business.ClipOrBuilder>(
getClip(),
getParentForChildren(),
isClean());
clip_ = null;
}
return clipBuilder_;
}
private com.google.protobuf.Internal.IntList outputIndex_ = emptyIntList();
private void ensureOutputIndexIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
outputIndex_ = mutableCopy(outputIndex_);
bitField0_ |= 0x00000002;
}
}
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @return A list containing the outputIndex.
*/
public java.util.List
getOutputIndexList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(outputIndex_) : outputIndex_;
}
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @return The count of outputIndex.
*/
public int getOutputIndexCount() {
return outputIndex_.size();
}
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @param index The index of the element to return.
* @return The outputIndex at the given index.
*/
public int getOutputIndex(int index) {
return outputIndex_.getInt(index);
}
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @param index The index to set the value at.
* @param value The outputIndex to set.
* @return This builder for chaining.
*/
public Builder setOutputIndex(
int index, int value) {
ensureOutputIndexIsMutable();
outputIndex_.setInt(index, value);
onChanged();
return this;
}
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @param value The outputIndex to add.
* @return This builder for chaining.
*/
public Builder addOutputIndex(int value) {
ensureOutputIndexIsMutable();
outputIndex_.addInt(value);
onChanged();
return this;
}
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @param values The outputIndex to add.
* @return This builder for chaining.
*/
public Builder addAllOutputIndex(
java.lang.Iterable extends java.lang.Integer> values) {
ensureOutputIndexIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outputIndex_);
onChanged();
return this;
}
/**
*
* 模板组下标,仅对模板组生效
*
*
* repeated int32 OutputIndex = 3;
* @return This builder for chaining.
*/
public Builder clearOutputIndex() {
outputIndex_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.lang.Object fileName_ = "";
/**
*
* 文件名
*
*
* string FileName = 4;
* @return The fileName.
*/
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 文件名
*
*
* string FileName = 4;
* @return The bytes for fileName.
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 文件名
*
*
* string FileName = 4;
* @param value The fileName to set.
* @return This builder for chaining.
*/
public Builder setFileName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fileName_ = value;
onChanged();
return this;
}
/**
*
* 文件名
*
*
* string FileName = 4;
* @return This builder for chaining.
*/
public Builder clearFileName() {
fileName_ = getDefaultInstance().getFileName();
onChanged();
return this;
}
/**
*
* 文件名
*
*
* string FileName = 4;
* @param value The bytes for fileName to set.
* @return This builder for chaining.
*/
public Builder setFileNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fileName_ = value;
onChanged();
return this;
}
private java.lang.Object logoTemplateId_ = "";
/**
*
* 指定水印模板Id
*
*
* string LogoTemplateId = 5;
* @return The logoTemplateId.
*/
public java.lang.String getLogoTemplateId() {
java.lang.Object ref = logoTemplateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logoTemplateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 指定水印模板Id
*
*
* string LogoTemplateId = 5;
* @return The bytes for logoTemplateId.
*/
public com.google.protobuf.ByteString
getLogoTemplateIdBytes() {
java.lang.Object ref = logoTemplateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logoTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 指定水印模板Id
*
*
* string LogoTemplateId = 5;
* @param value The logoTemplateId to set.
* @return This builder for chaining.
*/
public Builder setLogoTemplateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logoTemplateId_ = value;
onChanged();
return this;
}
/**
*
* 指定水印模板Id
*
*
* string LogoTemplateId = 5;
* @return This builder for chaining.
*/
public Builder clearLogoTemplateId() {
logoTemplateId_ = getDefaultInstance().getLogoTemplateId();
onChanged();
return this;
}
/**
*
* 指定水印模板Id
*
*
* string LogoTemplateId = 5;
* @param value The bytes for logoTemplateId to set.
* @return This builder for chaining.
*/
public Builder setLogoTemplateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logoTemplateId_ = value;
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.TranscodeVideoOverride)
}
// @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.TranscodeVideoOverride)
private static final com.volcengine.service.vod.model.business.TranscodeVideoOverride DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.TranscodeVideoOverride();
}
public static com.volcengine.service.vod.model.business.TranscodeVideoOverride getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TranscodeVideoOverride parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TranscodeVideoOverride(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.TranscodeVideoOverride getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy