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

com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest 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/request/request_vod.proto

package com.volcengine.service.vod.model.request;

/**
 * Protobuf type {@code Volcengine.Vod.Models.Request.VodUpdateWorkflowTemplateRequest}
 */
public final class VodUpdateWorkflowTemplateRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Request.VodUpdateWorkflowTemplateRequest)
    VodUpdateWorkflowTemplateRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use VodUpdateWorkflowTemplateRequest.newBuilder() to construct.
  private VodUpdateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private VodUpdateWorkflowTemplateRequest() {
    templateId_ = "";
    name_ = "";
    description_ = "";
    activities_ = java.util.Collections.emptyList();
  }

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

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

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

            description_ = s;
            break;
          }
          case 58: {
            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.request.VodRequest.internal_static_Volcengine_Vod_Models_Request_VodUpdateWorkflowTemplateRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.volcengine.service.vod.model.request.VodRequest.internal_static_Volcengine_Vod_Models_Request_VodUpdateWorkflowTemplateRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest.class, com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest.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 NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
   * 模板名称 
   * 
* * string Name = 2; * @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 = 2; * @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 = 3; private volatile java.lang.Object description_; /** *
   * 模板描述 
   * 
* * string Description = 3; * @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 = 3; * @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 ACTIVITIES_FIELD_NUMBER = 7; private java.util.List activities_; /** *
   * 任务列表 
   * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 7; */ @java.lang.Override public java.util.List getActivitiesList() { return activities_; } /** *
   * 任务列表 
   * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 7; */ @java.lang.Override public java.util.List getActivitiesOrBuilderList() { return activities_; } /** *
   * 任务列表 
   * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 7; */ @java.lang.Override public int getActivitiesCount() { return activities_.size(); } /** *
   * 任务列表 
   * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 7; */ @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 = 7; */ @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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } for (int i = 0; i < activities_.size(); i++) { output.writeMessage(7, 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < activities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, 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.request.VodUpdateWorkflowTemplateRequest)) { return super.equals(obj); } com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest other = (com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest) obj; if (!getTemplateId() .equals(other.getTemplateId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().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.request.VodUpdateWorkflowTemplateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest 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.request.VodUpdateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest 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.request.VodUpdateWorkflowTemplateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest 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.request.VodUpdateWorkflowTemplateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest 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.request.VodUpdateWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest 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.request.VodUpdateWorkflowTemplateRequest 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.request.VodUpdateWorkflowTemplateRequest 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.request.VodUpdateWorkflowTemplateRequest 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.Request.VodUpdateWorkflowTemplateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Request.VodUpdateWorkflowTemplateRequest) com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.service.vod.model.request.VodRequest.internal_static_Volcengine_Vod_Models_Request_VodUpdateWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.service.vod.model.request.VodRequest.internal_static_Volcengine_Vod_Models_Request_VodUpdateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest.class, com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest.Builder.class); } // Construct using com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest.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_ = ""; name_ = ""; description_ = ""; 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.request.VodRequest.internal_static_Volcengine_Vod_Models_Request_VodUpdateWorkflowTemplateRequest_descriptor; } @java.lang.Override public com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest getDefaultInstanceForType() { return com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest.getDefaultInstance(); } @java.lang.Override public com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest build() { com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest buildPartial() { com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest result = new com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest(this); int from_bitField0_ = bitField0_; result.templateId_ = templateId_; result.name_ = name_; result.description_ = description_; 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.request.VodUpdateWorkflowTemplateRequest) { return mergeFrom((com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest other) { if (other == com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest.getDefaultInstance()) return this; if (!other.getTemplateId().isEmpty()) { templateId_ = other.templateId_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; 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.request.VodUpdateWorkflowTemplateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest) 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 name_ = ""; /** *
     * 模板名称 
     * 
* * string Name = 2; * @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 = 2; * @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 = 2; * @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 = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * 模板名称 
     * 
* * string Name = 2; * @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 = 3; * @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 = 3; * @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 = 3; * @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 = 3; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * 模板描述 
     * 
* * string Description = 3; * @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.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 = 7; */ 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 = 7; */ public int getActivitiesCount() { if (activitiesBuilder_ == null) { return activities_.size(); } else { return activitiesBuilder_.getCount(); } } /** *
     * 任务列表 
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ public com.volcengine.service.vod.model.business.Activity.Builder getActivitiesBuilder( int index) { return getActivitiesFieldBuilder().getBuilder(index); } /** *
     * 任务列表 
     * 
* * repeated .Volcengine.Vod.Models.Business.Activity Activities = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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.Request.VodUpdateWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Request.VodUpdateWorkflowTemplateRequest) private static final com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest(); } public static com.volcengine.service.vod.model.request.VodUpdateWorkflowTemplateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VodUpdateWorkflowTemplateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VodUpdateWorkflowTemplateRequest(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.request.VodUpdateWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy