Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: byteplus/vod/business/vod_workflow.proto
package com.byteplus.service.vod.model.business;
/**
* Protobuf type {@code Byteplus.Vod.Models.Business.TranscodeAudioOverride}
*/
public final class TranscodeAudioOverride extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Byteplus.Vod.Models.Business.TranscodeAudioOverride)
TranscodeAudioOverrideOrBuilder {
private static final long serialVersionUID = 0L;
// Use TranscodeAudioOverride.newBuilder() to construct.
private TranscodeAudioOverride(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TranscodeAudioOverride() {
templateId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
fileName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TranscodeAudioOverride();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TranscodeAudioOverride(
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.byteplus.service.vod.model.business.Clip.Builder subBuilder = null;
if (clip_ != null) {
subBuilder = clip_.toBuilder();
}
clip_ = input.readMessage(com.byteplus.service.vod.model.business.Clip.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clip_);
clip_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
fileName_ = 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();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.byteplus.service.vod.model.business.VodWorkflow.internal_static_Byteplus_Vod_Models_Business_TranscodeAudioOverride_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.byteplus.service.vod.model.business.VodWorkflow.internal_static_Byteplus_Vod_Models_Business_TranscodeAudioOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.byteplus.service.vod.model.business.TranscodeAudioOverride.class, com.byteplus.service.vod.model.business.TranscodeAudioOverride.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.byteplus.service.vod.model.business.Clip clip_;
/**
* .Byteplus.Vod.Models.Business.Clip Clip = 2;
* @return Whether the clip field is set.
*/
@java.lang.Override
public boolean hasClip() {
return clip_ != null;
}
/**
* .Byteplus.Vod.Models.Business.Clip Clip = 2;
* @return The clip.
*/
@java.lang.Override
public com.byteplus.service.vod.model.business.Clip getClip() {
return clip_ == null ? com.byteplus.service.vod.model.business.Clip.getDefaultInstance() : clip_;
}
/**
* .Byteplus.Vod.Models.Business.Clip Clip = 2;
*/
@java.lang.Override
public com.byteplus.service.vod.model.business.ClipOrBuilder getClipOrBuilder() {
return getClip();
}
public static final int FILENAME_FIELD_NUMBER = 3;
private volatile java.lang.Object fileName_;
/**
*
*
* string FileName = 3;
* @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;
}
}
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 {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fileName_);
}
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());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fileName_);
}
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.byteplus.service.vod.model.business.TranscodeAudioOverride)) {
return super.equals(obj);
}
com.byteplus.service.vod.model.business.TranscodeAudioOverride other = (com.byteplus.service.vod.model.business.TranscodeAudioOverride) obj;
if (!getTemplateIdList()
.equals(other.getTemplateIdList())) return false;
if (hasClip() != other.hasClip()) return false;
if (hasClip()) {
if (!getClip()
.equals(other.getClip())) return false;
}
if (!getFileName()
.equals(other.getFileName())) 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();
}
hash = (37 * hash) + FILENAME_FIELD_NUMBER;
hash = (53 * hash) + getFileName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride 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.byteplus.service.vod.model.business.TranscodeAudioOverride parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride 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.byteplus.service.vod.model.business.TranscodeAudioOverride parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.byteplus.service.vod.model.business.TranscodeAudioOverride 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.byteplus.service.vod.model.business.TranscodeAudioOverride 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 Byteplus.Vod.Models.Business.TranscodeAudioOverride}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Byteplus.Vod.Models.Business.TranscodeAudioOverride)
com.byteplus.service.vod.model.business.TranscodeAudioOverrideOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.byteplus.service.vod.model.business.VodWorkflow.internal_static_Byteplus_Vod_Models_Business_TranscodeAudioOverride_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.byteplus.service.vod.model.business.VodWorkflow.internal_static_Byteplus_Vod_Models_Business_TranscodeAudioOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.byteplus.service.vod.model.business.TranscodeAudioOverride.class, com.byteplus.service.vod.model.business.TranscodeAudioOverride.Builder.class);
}
// Construct using com.byteplus.service.vod.model.business.TranscodeAudioOverride.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;
}
fileName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.byteplus.service.vod.model.business.VodWorkflow.internal_static_Byteplus_Vod_Models_Business_TranscodeAudioOverride_descriptor;
}
@java.lang.Override
public com.byteplus.service.vod.model.business.TranscodeAudioOverride getDefaultInstanceForType() {
return com.byteplus.service.vod.model.business.TranscodeAudioOverride.getDefaultInstance();
}
@java.lang.Override
public com.byteplus.service.vod.model.business.TranscodeAudioOverride build() {
com.byteplus.service.vod.model.business.TranscodeAudioOverride result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.byteplus.service.vod.model.business.TranscodeAudioOverride buildPartial() {
com.byteplus.service.vod.model.business.TranscodeAudioOverride result = new com.byteplus.service.vod.model.business.TranscodeAudioOverride(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();
}
result.fileName_ = fileName_;
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.byteplus.service.vod.model.business.TranscodeAudioOverride) {
return mergeFrom((com.byteplus.service.vod.model.business.TranscodeAudioOverride)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.byteplus.service.vod.model.business.TranscodeAudioOverride other) {
if (other == com.byteplus.service.vod.model.business.TranscodeAudioOverride.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.getFileName().isEmpty()) {
fileName_ = other.fileName_;
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.byteplus.service.vod.model.business.TranscodeAudioOverride parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.byteplus.service.vod.model.business.TranscodeAudioOverride) 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;
}
/**
*