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

com.volcengine.service.vod.model.business.VodDomainSourceInfo 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_cdn.proto

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

/**
 * Protobuf type {@code Volcengine.Vod.Models.Business.VodDomainSourceInfo}
 */
public final class VodDomainSourceInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.VodDomainSourceInfo)
    VodDomainSourceInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use VodDomainSourceInfo.newBuilder() to construct.
  private VodDomainSourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private VodDomainSourceInfo() {
    sourceStationType_ = 0;
    sourceStationAddressType_ = 0;
    origin_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private VodDomainSourceInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {
            int rawValue = input.readEnum();

            sourceStationType_ = rawValue;
            break;
          }
          case 16: {
            int rawValue = input.readEnum();

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

            origin_ = s;
            break;
          }
          case 34: {
            com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.Builder subBuilder = null;
            if (bucket_ != null) {
              subBuilder = bucket_.toBuilder();
            }
            bucket_ = input.readMessage(com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(bucket_);
              bucket_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodDomainSourceInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodDomainSourceInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.volcengine.service.vod.model.business.VodDomainSourceInfo.class, com.volcengine.service.vod.model.business.VodDomainSourceInfo.Builder.class);
  }

  public static final int SOURCESTATIONTYPE_FIELD_NUMBER = 1;
  private int sourceStationType_;
  /**
   * 
   *源站类型
   * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1; * @return The enum numeric value on the wire for sourceStationType. */ @java.lang.Override public int getSourceStationTypeValue() { return sourceStationType_; } /** *
   *源站类型
   * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1; * @return The sourceStationType. */ @java.lang.Override public com.volcengine.service.vod.model.business.VodDomainSourceStationType getSourceStationType() { @SuppressWarnings("deprecation") com.volcengine.service.vod.model.business.VodDomainSourceStationType result = com.volcengine.service.vod.model.business.VodDomainSourceStationType.valueOf(sourceStationType_); return result == null ? com.volcengine.service.vod.model.business.VodDomainSourceStationType.UNRECOGNIZED : result; } public static final int SOURCESTATIONADDRESSTYPE_FIELD_NUMBER = 2; private int sourceStationAddressType_; /** *
   *源站地址类型
   * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2; * @return The enum numeric value on the wire for sourceStationAddressType. */ @java.lang.Override public int getSourceStationAddressTypeValue() { return sourceStationAddressType_; } /** *
   *源站地址类型
   * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2; * @return The sourceStationAddressType. */ @java.lang.Override public com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType getSourceStationAddressType() { @SuppressWarnings("deprecation") com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType result = com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType.valueOf(sourceStationAddressType_); return result == null ? com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType.UNRECOGNIZED : result; } public static final int ORIGIN_FIELD_NUMBER = 3; private volatile java.lang.Object origin_; /** *
   *回源地址
   * 
* * string Origin = 3; * @return The origin. */ @java.lang.Override public java.lang.String getOrigin() { java.lang.Object ref = origin_; 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(); origin_ = s; return s; } } /** *
   *回源地址
   * 
* * string Origin = 3; * @return The bytes for origin. */ @java.lang.Override public com.google.protobuf.ByteString getOriginBytes() { java.lang.Object ref = origin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); origin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUCKET_FIELD_NUMBER = 4; private com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo bucket_; /** *
   *回源存储桶信息
   * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; * @return Whether the bucket field is set. */ @java.lang.Override public boolean hasBucket() { return bucket_ != null; } /** *
   *回源存储桶信息
   * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; * @return The bucket. */ @java.lang.Override public com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo getBucket() { return bucket_ == null ? com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.getDefaultInstance() : bucket_; } /** *
   *回源存储桶信息
   * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; */ @java.lang.Override public com.volcengine.service.vod.model.business.VodDomainOriginBucketInfoOrBuilder getBucketOrBuilder() { return getBucket(); } 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 (sourceStationType_ != com.volcengine.service.vod.model.business.VodDomainSourceStationType.UndefinedVodDomainSourceStationType.getNumber()) { output.writeEnum(1, sourceStationType_); } if (sourceStationAddressType_ != com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType.UndefinedVodDomainSourceStationAddressType.getNumber()) { output.writeEnum(2, sourceStationAddressType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(origin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, origin_); } if (bucket_ != null) { output.writeMessage(4, getBucket()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sourceStationType_ != com.volcengine.service.vod.model.business.VodDomainSourceStationType.UndefinedVodDomainSourceStationType.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, sourceStationType_); } if (sourceStationAddressType_ != com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType.UndefinedVodDomainSourceStationAddressType.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, sourceStationAddressType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(origin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, origin_); } if (bucket_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBucket()); } 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.VodDomainSourceInfo)) { return super.equals(obj); } com.volcengine.service.vod.model.business.VodDomainSourceInfo other = (com.volcengine.service.vod.model.business.VodDomainSourceInfo) obj; if (sourceStationType_ != other.sourceStationType_) return false; if (sourceStationAddressType_ != other.sourceStationAddressType_) return false; if (!getOrigin() .equals(other.getOrigin())) return false; if (hasBucket() != other.hasBucket()) return false; if (hasBucket()) { if (!getBucket() .equals(other.getBucket())) 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) + SOURCESTATIONTYPE_FIELD_NUMBER; hash = (53 * hash) + sourceStationType_; hash = (37 * hash) + SOURCESTATIONADDRESSTYPE_FIELD_NUMBER; hash = (53 * hash) + sourceStationAddressType_; hash = (37 * hash) + ORIGIN_FIELD_NUMBER; hash = (53 * hash) + getOrigin().hashCode(); if (hasBucket()) { hash = (37 * hash) + BUCKET_FIELD_NUMBER; hash = (53 * hash) + getBucket().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.service.vod.model.business.VodDomainSourceInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.business.VodDomainSourceInfo 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.VodDomainSourceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.business.VodDomainSourceInfo 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.VodDomainSourceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.business.VodDomainSourceInfo 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.VodDomainSourceInfo 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.VodDomainSourceInfo 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.VodDomainSourceInfo 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.VodDomainSourceInfo 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.VodDomainSourceInfo 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.VodDomainSourceInfo 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.VodDomainSourceInfo 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.VodDomainSourceInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.VodDomainSourceInfo) com.volcengine.service.vod.model.business.VodDomainSourceInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodDomainSourceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodDomainSourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.service.vod.model.business.VodDomainSourceInfo.class, com.volcengine.service.vod.model.business.VodDomainSourceInfo.Builder.class); } // Construct using com.volcengine.service.vod.model.business.VodDomainSourceInfo.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(); sourceStationType_ = 0; sourceStationAddressType_ = 0; origin_ = ""; if (bucketBuilder_ == null) { bucket_ = null; } else { bucket_ = null; bucketBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodDomainSourceInfo_descriptor; } @java.lang.Override public com.volcengine.service.vod.model.business.VodDomainSourceInfo getDefaultInstanceForType() { return com.volcengine.service.vod.model.business.VodDomainSourceInfo.getDefaultInstance(); } @java.lang.Override public com.volcengine.service.vod.model.business.VodDomainSourceInfo build() { com.volcengine.service.vod.model.business.VodDomainSourceInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.service.vod.model.business.VodDomainSourceInfo buildPartial() { com.volcengine.service.vod.model.business.VodDomainSourceInfo result = new com.volcengine.service.vod.model.business.VodDomainSourceInfo(this); result.sourceStationType_ = sourceStationType_; result.sourceStationAddressType_ = sourceStationAddressType_; result.origin_ = origin_; if (bucketBuilder_ == null) { result.bucket_ = bucket_; } else { result.bucket_ = bucketBuilder_.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.VodDomainSourceInfo) { return mergeFrom((com.volcengine.service.vod.model.business.VodDomainSourceInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.service.vod.model.business.VodDomainSourceInfo other) { if (other == com.volcengine.service.vod.model.business.VodDomainSourceInfo.getDefaultInstance()) return this; if (other.sourceStationType_ != 0) { setSourceStationTypeValue(other.getSourceStationTypeValue()); } if (other.sourceStationAddressType_ != 0) { setSourceStationAddressTypeValue(other.getSourceStationAddressTypeValue()); } if (!other.getOrigin().isEmpty()) { origin_ = other.origin_; onChanged(); } if (other.hasBucket()) { mergeBucket(other.getBucket()); } 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.VodDomainSourceInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.volcengine.service.vod.model.business.VodDomainSourceInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sourceStationType_ = 0; /** *
     *源站类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1; * @return The enum numeric value on the wire for sourceStationType. */ @java.lang.Override public int getSourceStationTypeValue() { return sourceStationType_; } /** *
     *源站类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1; * @param value The enum numeric value on the wire for sourceStationType to set. * @return This builder for chaining. */ public Builder setSourceStationTypeValue(int value) { sourceStationType_ = value; onChanged(); return this; } /** *
     *源站类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1; * @return The sourceStationType. */ @java.lang.Override public com.volcengine.service.vod.model.business.VodDomainSourceStationType getSourceStationType() { @SuppressWarnings("deprecation") com.volcengine.service.vod.model.business.VodDomainSourceStationType result = com.volcengine.service.vod.model.business.VodDomainSourceStationType.valueOf(sourceStationType_); return result == null ? com.volcengine.service.vod.model.business.VodDomainSourceStationType.UNRECOGNIZED : result; } /** *
     *源站类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1; * @param value The sourceStationType to set. * @return This builder for chaining. */ public Builder setSourceStationType(com.volcengine.service.vod.model.business.VodDomainSourceStationType value) { if (value == null) { throw new NullPointerException(); } sourceStationType_ = value.getNumber(); onChanged(); return this; } /** *
     *源站类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1; * @return This builder for chaining. */ public Builder clearSourceStationType() { sourceStationType_ = 0; onChanged(); return this; } private int sourceStationAddressType_ = 0; /** *
     *源站地址类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2; * @return The enum numeric value on the wire for sourceStationAddressType. */ @java.lang.Override public int getSourceStationAddressTypeValue() { return sourceStationAddressType_; } /** *
     *源站地址类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2; * @param value The enum numeric value on the wire for sourceStationAddressType to set. * @return This builder for chaining. */ public Builder setSourceStationAddressTypeValue(int value) { sourceStationAddressType_ = value; onChanged(); return this; } /** *
     *源站地址类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2; * @return The sourceStationAddressType. */ @java.lang.Override public com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType getSourceStationAddressType() { @SuppressWarnings("deprecation") com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType result = com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType.valueOf(sourceStationAddressType_); return result == null ? com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType.UNRECOGNIZED : result; } /** *
     *源站地址类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2; * @param value The sourceStationAddressType to set. * @return This builder for chaining. */ public Builder setSourceStationAddressType(com.volcengine.service.vod.model.business.VodDomainSourceStationAddressType value) { if (value == null) { throw new NullPointerException(); } sourceStationAddressType_ = value.getNumber(); onChanged(); return this; } /** *
     *源站地址类型
     * 
* * .Volcengine.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2; * @return This builder for chaining. */ public Builder clearSourceStationAddressType() { sourceStationAddressType_ = 0; onChanged(); return this; } private java.lang.Object origin_ = ""; /** *
     *回源地址
     * 
* * string Origin = 3; * @return The origin. */ public java.lang.String getOrigin() { java.lang.Object ref = origin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); origin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *回源地址
     * 
* * string Origin = 3; * @return The bytes for origin. */ public com.google.protobuf.ByteString getOriginBytes() { java.lang.Object ref = origin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); origin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *回源地址
     * 
* * string Origin = 3; * @param value The origin to set. * @return This builder for chaining. */ public Builder setOrigin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } origin_ = value; onChanged(); return this; } /** *
     *回源地址
     * 
* * string Origin = 3; * @return This builder for chaining. */ public Builder clearOrigin() { origin_ = getDefaultInstance().getOrigin(); onChanged(); return this; } /** *
     *回源地址
     * 
* * string Origin = 3; * @param value The bytes for origin to set. * @return This builder for chaining. */ public Builder setOriginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); origin_ = value; onChanged(); return this; } private com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo bucket_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo, com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.Builder, com.volcengine.service.vod.model.business.VodDomainOriginBucketInfoOrBuilder> bucketBuilder_; /** *
     *回源存储桶信息
     * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; * @return Whether the bucket field is set. */ public boolean hasBucket() { return bucketBuilder_ != null || bucket_ != null; } /** *
     *回源存储桶信息
     * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; * @return The bucket. */ public com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo getBucket() { if (bucketBuilder_ == null) { return bucket_ == null ? com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.getDefaultInstance() : bucket_; } else { return bucketBuilder_.getMessage(); } } /** *
     *回源存储桶信息
     * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; */ public Builder setBucket(com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo value) { if (bucketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bucket_ = value; onChanged(); } else { bucketBuilder_.setMessage(value); } return this; } /** *
     *回源存储桶信息
     * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; */ public Builder setBucket( com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.Builder builderForValue) { if (bucketBuilder_ == null) { bucket_ = builderForValue.build(); onChanged(); } else { bucketBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     *回源存储桶信息
     * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; */ public Builder mergeBucket(com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo value) { if (bucketBuilder_ == null) { if (bucket_ != null) { bucket_ = com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.newBuilder(bucket_).mergeFrom(value).buildPartial(); } else { bucket_ = value; } onChanged(); } else { bucketBuilder_.mergeFrom(value); } return this; } /** *
     *回源存储桶信息
     * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; */ public Builder clearBucket() { if (bucketBuilder_ == null) { bucket_ = null; onChanged(); } else { bucket_ = null; bucketBuilder_ = null; } return this; } /** *
     *回源存储桶信息
     * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; */ public com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.Builder getBucketBuilder() { onChanged(); return getBucketFieldBuilder().getBuilder(); } /** *
     *回源存储桶信息
     * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; */ public com.volcengine.service.vod.model.business.VodDomainOriginBucketInfoOrBuilder getBucketOrBuilder() { if (bucketBuilder_ != null) { return bucketBuilder_.getMessageOrBuilder(); } else { return bucket_ == null ? com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.getDefaultInstance() : bucket_; } } /** *
     *回源存储桶信息
     * 
* * .Volcengine.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo, com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.Builder, com.volcengine.service.vod.model.business.VodDomainOriginBucketInfoOrBuilder> getBucketFieldBuilder() { if (bucketBuilder_ == null) { bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo, com.volcengine.service.vod.model.business.VodDomainOriginBucketInfo.Builder, com.volcengine.service.vod.model.business.VodDomainOriginBucketInfoOrBuilder>( getBucket(), getParentForChildren(), isClean()); bucket_ = null; } return bucketBuilder_; } @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.VodDomainSourceInfo) } // @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.VodDomainSourceInfo) private static final com.volcengine.service.vod.model.business.VodDomainSourceInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.VodDomainSourceInfo(); } public static com.volcengine.service.vod.model.business.VodDomainSourceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VodDomainSourceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VodDomainSourceInfo(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.VodDomainSourceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy