All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.volcengine.service.vod.model.business.WorkflowTemplate Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
// 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.WorkflowTemplate}
 */
public final class WorkflowTemplate extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.WorkflowTemplate)
    WorkflowTemplateOrBuilder {
private static final long serialVersionUID = 0L;
  // Use WorkflowTemplate.newBuilder() to construct.
  private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private WorkflowTemplate() {
    templateId_ = "";
    spaceName_ = "";
    name_ = "";
    description_ = "";
    type_ = "";
    commitId_ = "";
    activities_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new WorkflowTemplate();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private WorkflowTemplate(
      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();

            templateId_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            spaceName_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

            name_ = s;
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

            description_ = s;
            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();

            type_ = s;
            break;
          }
          case 98: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (createdAt_ != null) {
              subBuilder = createdAt_.toBuilder();
            }
            createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(createdAt_);
              createdAt_ = subBuilder.buildPartial();
            }

            break;
          }
          case 106: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (updatedAt_ != null) {
              subBuilder = updatedAt_.toBuilder();
            }
            updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(updatedAt_);
              updatedAt_ = subBuilder.buildPartial();
            }

            break;
          }
          case 114: {
            java.lang.String s = input.readStringRequireUtf8();

            commitId_ = s;
            break;
          }
          case 154: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              activities_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            activities_.add(
                input.readMessage(com.volcengine.service.vod.model.business.Activity.parser(), extensionRegistry));
            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)) {
        activities_ = java.util.Collections.unmodifiableList(activities_);
      }
      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_WorkflowTemplate_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_WorkflowTemplate_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.volcengine.service.vod.model.business.WorkflowTemplate.class, com.volcengine.service.vod.model.business.WorkflowTemplate.Builder.class);
  }

  public static final int TEMPLATEID_FIELD_NUMBER = 1;
  private volatile java.lang.Object templateId_;
  /**
   * 
   * 模板Id
   * 
* * string TemplateId = 1; * @return The templateId. */ @java.lang.Override public java.lang.String getTemplateId() { java.lang.Object ref = templateId_; 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(); templateId_ = s; return s; } } /** *
   * 模板Id
   * 
* * string TemplateId = 1; * @return The bytes for templateId. */ @java.lang.Override public com.google.protobuf.ByteString getTemplateIdBytes() { java.lang.Object ref = templateId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); templateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SPACENAME_FIELD_NUMBER = 2; private volatile java.lang.Object spaceName_; /** *
   * 空间名
   * 
* * string SpaceName = 2; * @return The spaceName. */ @java.lang.Override public java.lang.String getSpaceName() { java.lang.Object ref = spaceName_; 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(); spaceName_ = s; return s; } } /** *
   * 空间名
   * 
* * string SpaceName = 2; * @return The bytes for spaceName. */ @java.lang.Override public com.google.protobuf.ByteString getSpaceNameBytes() { java.lang.Object ref = spaceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); spaceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
   * 模板名称
   * 
* * string Name = 3; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * 模板名称
   * 
* * string Name = 3; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** *
   * 模板描述
   * 
* * string Description = 4; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
   * 模板描述
   * 
* * string Description = 4; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object type_; /** *
   * 多个值通过 ',' 连接
   * 
* * string Type = 6; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** *
   * 多个值通过 ',' 连接
   * 
* * string Type = 6; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATEDAT_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp createdAt_; /** * .google.protobuf.Timestamp CreatedAt = 12; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** * .google.protobuf.Timestamp CreatedAt = 12; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** * .google.protobuf.Timestamp CreatedAt = 12; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int UPDATEDAT_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp updatedAt_; /** * .google.protobuf.Timestamp UpdatedAt = 13; * @return Whether the updatedAt field is set. */ @java.lang.Override public boolean hasUpdatedAt() { return updatedAt_ != null; } /** * .google.protobuf.Timestamp UpdatedAt = 13; * @return The updatedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdatedAt() { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } /** * .google.protobuf.Timestamp UpdatedAt = 13; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { return getUpdatedAt(); } public static final int COMMITID_FIELD_NUMBER = 14; private volatile java.lang.Object commitId_; /** *
   * 模板版本
   * 
* * string CommitId = 14; * @return The commitId. */ @java.lang.Override public java.lang.String getCommitId() { java.lang.Object ref = commitId_; 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(); commitId_ = s; return s; } } /** *
   * 模板版本
   * 
* * string CommitId = 14; * @return The bytes for commitId. */ @java.lang.Override public com.google.protobuf.ByteString getCommitIdBytes() { java.lang.Object ref = commitId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); commitId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACTIVITIES_FIELD_NUMBER = 19; private java.util.List activities_; /** *
   * 任务集合
   * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ @java.lang.Override public java.util.List getActivitiesList() { return activities_; } /** *
   * 任务集合
   * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ @java.lang.Override public java.util.List getActivitiesOrBuilderList() { return activities_; } /** *
   * 任务集合
   * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ @java.lang.Override public int getActivitiesCount() { return activities_.size(); } /** *
   * 任务集合
   * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ @java.lang.Override public com.volcengine.service.vod.model.business.Activity getActivities(int index) { return activities_.get(index); } /** *
   * 任务集合
   * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ @java.lang.Override public com.volcengine.service.vod.model.business.ActivityOrBuilder getActivitiesOrBuilder( int index) { return activities_.get(index); } 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(templateId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, templateId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spaceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, spaceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, type_); } if (createdAt_ != null) { output.writeMessage(12, getCreatedAt()); } if (updatedAt_ != null) { output.writeMessage(13, getUpdatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, commitId_); } for (int i = 0; i < activities_.size(); i++) { output.writeMessage(19, activities_.get(i)); } 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(templateId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, templateId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spaceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spaceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getCreatedAt()); } if (updatedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getUpdatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, commitId_); } for (int i = 0; i < activities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, activities_.get(i)); } 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.WorkflowTemplate)) { return super.equals(obj); } com.volcengine.service.vod.model.business.WorkflowTemplate other = (com.volcengine.service.vod.model.business.WorkflowTemplate) obj; if (!getTemplateId() .equals(other.getTemplateId())) return false; if (!getSpaceName() .equals(other.getSpaceName())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getType() .equals(other.getType())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasUpdatedAt() != other.hasUpdatedAt()) return false; if (hasUpdatedAt()) { if (!getUpdatedAt() .equals(other.getUpdatedAt())) return false; } if (!getCommitId() .equals(other.getCommitId())) return false; if (!getActivitiesList() .equals(other.getActivitiesList())) 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) + TEMPLATEID_FIELD_NUMBER; hash = (53 * hash) + getTemplateId().hashCode(); hash = (37 * hash) + SPACENAME_FIELD_NUMBER; hash = (53 * hash) + getSpaceName().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATEDAT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasUpdatedAt()) { hash = (37 * hash) + UPDATEDAT_FIELD_NUMBER; hash = (53 * hash) + getUpdatedAt().hashCode(); } hash = (37 * hash) + COMMITID_FIELD_NUMBER; hash = (53 * hash) + getCommitId().hashCode(); if (getActivitiesCount() > 0) { hash = (37 * hash) + ACTIVITIES_FIELD_NUMBER; hash = (53 * hash) + getActivitiesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.service.vod.model.business.WorkflowTemplate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.business.WorkflowTemplate 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.WorkflowTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.business.WorkflowTemplate 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.WorkflowTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.business.WorkflowTemplate 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.WorkflowTemplate 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.WorkflowTemplate 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.WorkflowTemplate 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.WorkflowTemplate 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.WorkflowTemplate 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.WorkflowTemplate 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.WorkflowTemplate 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.WorkflowTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.WorkflowTemplate) com.volcengine.service.vod.model.business.WorkflowTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_WorkflowTemplate_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_WorkflowTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.service.vod.model.business.WorkflowTemplate.class, com.volcengine.service.vod.model.business.WorkflowTemplate.Builder.class); } // Construct using com.volcengine.service.vod.model.business.WorkflowTemplate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getActivitiesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); templateId_ = ""; spaceName_ = ""; name_ = ""; description_ = ""; type_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (updatedAtBuilder_ == null) { updatedAt_ = null; } else { updatedAt_ = null; updatedAtBuilder_ = null; } commitId_ = ""; if (activitiesBuilder_ == null) { activities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { activitiesBuilder_.clear(); } 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_WorkflowTemplate_descriptor; } @java.lang.Override public com.volcengine.service.vod.model.business.WorkflowTemplate getDefaultInstanceForType() { return com.volcengine.service.vod.model.business.WorkflowTemplate.getDefaultInstance(); } @java.lang.Override public com.volcengine.service.vod.model.business.WorkflowTemplate build() { com.volcengine.service.vod.model.business.WorkflowTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.service.vod.model.business.WorkflowTemplate buildPartial() { com.volcengine.service.vod.model.business.WorkflowTemplate result = new com.volcengine.service.vod.model.business.WorkflowTemplate(this); int from_bitField0_ = bitField0_; result.templateId_ = templateId_; result.spaceName_ = spaceName_; result.name_ = name_; result.description_ = description_; result.type_ = type_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (updatedAtBuilder_ == null) { result.updatedAt_ = updatedAt_; } else { result.updatedAt_ = updatedAtBuilder_.build(); } result.commitId_ = commitId_; if (activitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { activities_ = java.util.Collections.unmodifiableList(activities_); bitField0_ = (bitField0_ & ~0x00000001); } result.activities_ = activities_; } else { result.activities_ = activitiesBuilder_.build(); } 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.WorkflowTemplate) { return mergeFrom((com.volcengine.service.vod.model.business.WorkflowTemplate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.service.vod.model.business.WorkflowTemplate other) { if (other == com.volcengine.service.vod.model.business.WorkflowTemplate.getDefaultInstance()) return this; if (!other.getTemplateId().isEmpty()) { templateId_ = other.templateId_; onChanged(); } if (!other.getSpaceName().isEmpty()) { spaceName_ = other.spaceName_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasUpdatedAt()) { mergeUpdatedAt(other.getUpdatedAt()); } if (!other.getCommitId().isEmpty()) { commitId_ = other.commitId_; onChanged(); } if (activitiesBuilder_ == null) { if (!other.activities_.isEmpty()) { if (activities_.isEmpty()) { activities_ = other.activities_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureActivitiesIsMutable(); activities_.addAll(other.activities_); } onChanged(); } } else { if (!other.activities_.isEmpty()) { if (activitiesBuilder_.isEmpty()) { activitiesBuilder_.dispose(); activitiesBuilder_ = null; activities_ = other.activities_; bitField0_ = (bitField0_ & ~0x00000001); activitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActivitiesFieldBuilder() : null; } else { activitiesBuilder_.addAllMessages(other.activities_); } } } 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.WorkflowTemplate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.volcengine.service.vod.model.business.WorkflowTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object templateId_ = ""; /** *
     * 模板Id
     * 
* * string TemplateId = 1; * @return The templateId. */ public java.lang.String getTemplateId() { java.lang.Object ref = templateId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); templateId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 模板Id
     * 
* * string TemplateId = 1; * @return The bytes for templateId. */ public com.google.protobuf.ByteString getTemplateIdBytes() { java.lang.Object ref = templateId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); templateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 模板Id
     * 
* * string TemplateId = 1; * @param value The templateId to set. * @return This builder for chaining. */ public Builder setTemplateId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } templateId_ = value; onChanged(); return this; } /** *
     * 模板Id
     * 
* * string TemplateId = 1; * @return This builder for chaining. */ public Builder clearTemplateId() { templateId_ = getDefaultInstance().getTemplateId(); onChanged(); return this; } /** *
     * 模板Id
     * 
* * string TemplateId = 1; * @param value The bytes for templateId to set. * @return This builder for chaining. */ public Builder setTemplateIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); templateId_ = value; onChanged(); return this; } private java.lang.Object spaceName_ = ""; /** *
     * 空间名
     * 
* * string SpaceName = 2; * @return The spaceName. */ public java.lang.String getSpaceName() { java.lang.Object ref = spaceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spaceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 空间名
     * 
* * string SpaceName = 2; * @return The bytes for spaceName. */ public com.google.protobuf.ByteString getSpaceNameBytes() { java.lang.Object ref = spaceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); spaceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 空间名
     * 
* * string SpaceName = 2; * @param value The spaceName to set. * @return This builder for chaining. */ public Builder setSpaceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } spaceName_ = value; onChanged(); return this; } /** *
     * 空间名
     * 
* * string SpaceName = 2; * @return This builder for chaining. */ public Builder clearSpaceName() { spaceName_ = getDefaultInstance().getSpaceName(); onChanged(); return this; } /** *
     * 空间名
     * 
* * string SpaceName = 2; * @param value The bytes for spaceName to set. * @return This builder for chaining. */ public Builder setSpaceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); spaceName_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * 模板名称
     * 
* * string Name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 模板名称
     * 
* * string Name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 模板名称
     * 
* * string Name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * 模板名称
     * 
* * string Name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * 模板名称
     * 
* * string Name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * 模板描述
     * 
* * string Description = 4; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 模板描述
     * 
* * string Description = 4; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 模板描述
     * 
* * string Description = 4; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
     * 模板描述
     * 
* * string Description = 4; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * 模板描述
     * 
* * string Description = 4; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object type_ = ""; /** *
     * 多个值通过 ',' 连接
     * 
* * string Type = 6; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 多个值通过 ',' 连接
     * 
* * string Type = 6; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 多个值通过 ',' 连接
     * 
* * string Type = 6; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); return this; } /** *
     * 多个值通过 ',' 连接
     * 
* * string Type = 6; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
     * 多个值通过 ',' 连接
     * 
* * string Type = 6; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** * .google.protobuf.Timestamp CreatedAt = 12; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** * .google.protobuf.Timestamp CreatedAt = 12; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp CreatedAt = 12; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp CreatedAt = 12; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp CreatedAt = 12; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp CreatedAt = 12; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp CreatedAt = 12; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp CreatedAt = 12; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** * .google.protobuf.Timestamp CreatedAt = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp updatedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; /** * .google.protobuf.Timestamp UpdatedAt = 13; * @return Whether the updatedAt field is set. */ public boolean hasUpdatedAt() { return updatedAtBuilder_ != null || updatedAt_ != null; } /** * .google.protobuf.Timestamp UpdatedAt = 13; * @return The updatedAt. */ public com.google.protobuf.Timestamp getUpdatedAt() { if (updatedAtBuilder_ == null) { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } else { return updatedAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp UpdatedAt = 13; */ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updatedAt_ = value; onChanged(); } else { updatedAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp UpdatedAt = 13; */ public Builder setUpdatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (updatedAtBuilder_ == null) { updatedAt_ = builderForValue.build(); onChanged(); } else { updatedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp UpdatedAt = 13; */ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (updatedAt_ != null) { updatedAt_ = com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); } else { updatedAt_ = value; } onChanged(); } else { updatedAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp UpdatedAt = 13; */ public Builder clearUpdatedAt() { if (updatedAtBuilder_ == null) { updatedAt_ = null; onChanged(); } else { updatedAt_ = null; updatedAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp UpdatedAt = 13; */ public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { onChanged(); return getUpdatedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp UpdatedAt = 13; */ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { if (updatedAtBuilder_ != null) { return updatedAtBuilder_.getMessageOrBuilder(); } else { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } } /** * .google.protobuf.Timestamp UpdatedAt = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdatedAtFieldBuilder() { if (updatedAtBuilder_ == null) { updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdatedAt(), getParentForChildren(), isClean()); updatedAt_ = null; } return updatedAtBuilder_; } private java.lang.Object commitId_ = ""; /** *
     * 模板版本
     * 
* * string CommitId = 14; * @return The commitId. */ public java.lang.String getCommitId() { java.lang.Object ref = commitId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commitId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 模板版本
     * 
* * string CommitId = 14; * @return The bytes for commitId. */ public com.google.protobuf.ByteString getCommitIdBytes() { java.lang.Object ref = commitId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); commitId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 模板版本
     * 
* * string CommitId = 14; * @param value The commitId to set. * @return This builder for chaining. */ public Builder setCommitId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } commitId_ = value; onChanged(); return this; } /** *
     * 模板版本
     * 
* * string CommitId = 14; * @return This builder for chaining. */ public Builder clearCommitId() { commitId_ = getDefaultInstance().getCommitId(); onChanged(); return this; } /** *
     * 模板版本
     * 
* * string CommitId = 14; * @param value The bytes for commitId to set. * @return This builder for chaining. */ public Builder setCommitIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); commitId_ = value; onChanged(); return this; } private java.util.List activities_ = java.util.Collections.emptyList(); private void ensureActivitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { activities_ = new java.util.ArrayList(activities_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.service.vod.model.business.Activity, com.volcengine.service.vod.model.business.Activity.Builder, com.volcengine.service.vod.model.business.ActivityOrBuilder> activitiesBuilder_; /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public java.util.List getActivitiesList() { if (activitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(activities_); } else { return activitiesBuilder_.getMessageList(); } } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public int getActivitiesCount() { if (activitiesBuilder_ == null) { return activities_.size(); } else { return activitiesBuilder_.getCount(); } } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public com.volcengine.service.vod.model.business.Activity getActivities(int index) { if (activitiesBuilder_ == null) { return activities_.get(index); } else { return activitiesBuilder_.getMessage(index); } } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public Builder setActivities( int index, com.volcengine.service.vod.model.business.Activity value) { if (activitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivitiesIsMutable(); activities_.set(index, value); onChanged(); } else { activitiesBuilder_.setMessage(index, value); } return this; } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public Builder setActivities( int index, com.volcengine.service.vod.model.business.Activity.Builder builderForValue) { if (activitiesBuilder_ == null) { ensureActivitiesIsMutable(); activities_.set(index, builderForValue.build()); onChanged(); } else { activitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public Builder addActivities(com.volcengine.service.vod.model.business.Activity value) { if (activitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivitiesIsMutable(); activities_.add(value); onChanged(); } else { activitiesBuilder_.addMessage(value); } return this; } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public Builder addActivities( int index, com.volcengine.service.vod.model.business.Activity value) { if (activitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivitiesIsMutable(); activities_.add(index, value); onChanged(); } else { activitiesBuilder_.addMessage(index, value); } return this; } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public Builder addActivities( com.volcengine.service.vod.model.business.Activity.Builder builderForValue) { if (activitiesBuilder_ == null) { ensureActivitiesIsMutable(); activities_.add(builderForValue.build()); onChanged(); } else { activitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public Builder addActivities( int index, com.volcengine.service.vod.model.business.Activity.Builder builderForValue) { if (activitiesBuilder_ == null) { ensureActivitiesIsMutable(); activities_.add(index, builderForValue.build()); onChanged(); } else { activitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public Builder addAllActivities( java.lang.Iterable values) { if (activitiesBuilder_ == null) { ensureActivitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, activities_); onChanged(); } else { activitiesBuilder_.addAllMessages(values); } return this; } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public Builder clearActivities() { if (activitiesBuilder_ == null) { activities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { activitiesBuilder_.clear(); } return this; } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public Builder removeActivities(int index) { if (activitiesBuilder_ == null) { ensureActivitiesIsMutable(); activities_.remove(index); onChanged(); } else { activitiesBuilder_.remove(index); } return this; } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public com.volcengine.service.vod.model.business.Activity.Builder getActivitiesBuilder( int index) { return getActivitiesFieldBuilder().getBuilder(index); } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public com.volcengine.service.vod.model.business.ActivityOrBuilder getActivitiesOrBuilder( int index) { if (activitiesBuilder_ == null) { return activities_.get(index); } else { return activitiesBuilder_.getMessageOrBuilder(index); } } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public java.util.List getActivitiesOrBuilderList() { if (activitiesBuilder_ != null) { return activitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(activities_); } } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public com.volcengine.service.vod.model.business.Activity.Builder addActivitiesBuilder() { return getActivitiesFieldBuilder().addBuilder( com.volcengine.service.vod.model.business.Activity.getDefaultInstance()); } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public com.volcengine.service.vod.model.business.Activity.Builder addActivitiesBuilder( int index) { return getActivitiesFieldBuilder().addBuilder( index, com.volcengine.service.vod.model.business.Activity.getDefaultInstance()); } /** *
     * 任务集合
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 19; */ public java.util.List getActivitiesBuilderList() { return getActivitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.service.vod.model.business.Activity, com.volcengine.service.vod.model.business.Activity.Builder, com.volcengine.service.vod.model.business.ActivityOrBuilder> getActivitiesFieldBuilder() { if (activitiesBuilder_ == null) { activitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.service.vod.model.business.Activity, com.volcengine.service.vod.model.business.Activity.Builder, com.volcengine.service.vod.model.business.ActivityOrBuilder>( activities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); activities_ = null; } return activitiesBuilder_; } @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.WorkflowTemplate) } // @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.WorkflowTemplate) private static final com.volcengine.service.vod.model.business.WorkflowTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.WorkflowTemplate(); } public static com.volcengine.service.vod.model.business.WorkflowTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WorkflowTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkflowTemplate(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.WorkflowTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy