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

com.volcengine.service.vod.model.business.OriginLine 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.OriginLine} */ public final class OriginLine extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.OriginLine) OriginLineOrBuilder { private static final long serialVersionUID = 0L; // Use OriginLine.newBuilder() to construct. private OriginLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OriginLine() { address_ = ""; httpPort_ = ""; httpsPort_ = ""; instanceType_ = ""; originHost_ = ""; originType_ = ""; weight_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OriginLine(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OriginLine( 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 10: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); httpPort_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); httpsPort_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); instanceType_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); originHost_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); originType_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); weight_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { 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_OriginLine_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_OriginLine_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.service.vod.model.business.OriginLine.class, com.volcengine.service.vod.model.business.OriginLine.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** *
   * 源站地址
   * 
* * string Address = 1; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; 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(); address_ = s; return s; } } /** *
   * 源站地址
   * 
* * string Address = 1; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HTTPPORT_FIELD_NUMBER = 2; private volatile java.lang.Object httpPort_; /** *
   * HTTP协议端口
   * 
* * string HttpPort = 2; * @return The httpPort. */ @java.lang.Override public java.lang.String getHttpPort() { java.lang.Object ref = httpPort_; 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(); httpPort_ = s; return s; } } /** *
   * HTTP协议端口
   * 
* * string HttpPort = 2; * @return The bytes for httpPort. */ @java.lang.Override public com.google.protobuf.ByteString getHttpPortBytes() { java.lang.Object ref = httpPort_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpPort_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HTTPSPORT_FIELD_NUMBER = 3; private volatile java.lang.Object httpsPort_; /** *
   * HTTPS协议端口
   * 
* * string HttpsPort = 3; * @return The httpsPort. */ @java.lang.Override public java.lang.String getHttpsPort() { java.lang.Object ref = httpsPort_; 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(); httpsPort_ = s; return s; } } /** *
   * HTTPS协议端口
   * 
* * string HttpsPort = 3; * @return The bytes for httpsPort. */ @java.lang.Override public com.google.protobuf.ByteString getHttpsPortBytes() { java.lang.Object ref = httpsPort_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpsPort_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSTANCETYPE_FIELD_NUMBER = 4; private volatile java.lang.Object instanceType_; /** *
   * 源站的类型 ip/domain
   * 
* * string InstanceType = 4; * @return The instanceType. */ @java.lang.Override public java.lang.String getInstanceType() { java.lang.Object ref = instanceType_; 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(); instanceType_ = s; return s; } } /** *
   * 源站的类型 ip/domain
   * 
* * string InstanceType = 4; * @return The bytes for instanceType. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceTypeBytes() { java.lang.Object ref = instanceType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORIGINHOST_FIELD_NUMBER = 5; private volatile java.lang.Object originHost_; /** *
   * 回源请求访问的站点域名
   * 
* * string OriginHost = 5; * @return The originHost. */ @java.lang.Override public java.lang.String getOriginHost() { java.lang.Object ref = originHost_; 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(); originHost_ = s; return s; } } /** *
   * 回源请求访问的站点域名
   * 
* * string OriginHost = 5; * @return The bytes for originHost. */ @java.lang.Override public com.google.protobuf.ByteString getOriginHostBytes() { java.lang.Object ref = originHost_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originHost_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORIGINTYPE_FIELD_NUMBER = 6; private volatile java.lang.Object originType_; /** *
   * 源站的类别 primary/backup
   * 
* * string OriginType = 6; * @return The originType. */ @java.lang.Override public java.lang.String getOriginType() { java.lang.Object ref = originType_; 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(); originType_ = s; return s; } } /** *
   * 源站的类别 primary/backup
   * 
* * string OriginType = 6; * @return The bytes for originType. */ @java.lang.Override public com.google.protobuf.ByteString getOriginTypeBytes() { java.lang.Object ref = originType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WEIGHT_FIELD_NUMBER = 7; private volatile java.lang.Object weight_; /** *
   * 源站的权重,取值范围是 1-100
   * 
* * string Weight = 7; * @return The weight. */ @java.lang.Override public java.lang.String getWeight() { java.lang.Object ref = weight_; 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(); weight_ = s; return s; } } /** *
   * 源站的权重,取值范围是 1-100
   * 
* * string Weight = 7; * @return The bytes for weight. */ @java.lang.Override public com.google.protobuf.ByteString getWeightBytes() { java.lang.Object ref = weight_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); weight_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpPort_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, httpPort_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpsPort_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, httpsPort_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originHost_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, originHost_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, originType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(weight_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, weight_); } 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(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpPort_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, httpPort_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpsPort_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, httpsPort_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originHost_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, originHost_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, originType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(weight_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, weight_); } 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.OriginLine)) { return super.equals(obj); } com.volcengine.service.vod.model.business.OriginLine other = (com.volcengine.service.vod.model.business.OriginLine) obj; if (!getAddress() .equals(other.getAddress())) return false; if (!getHttpPort() .equals(other.getHttpPort())) return false; if (!getHttpsPort() .equals(other.getHttpsPort())) return false; if (!getInstanceType() .equals(other.getInstanceType())) return false; if (!getOriginHost() .equals(other.getOriginHost())) return false; if (!getOriginType() .equals(other.getOriginType())) return false; if (!getWeight() .equals(other.getWeight())) 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) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + HTTPPORT_FIELD_NUMBER; hash = (53 * hash) + getHttpPort().hashCode(); hash = (37 * hash) + HTTPSPORT_FIELD_NUMBER; hash = (53 * hash) + getHttpsPort().hashCode(); hash = (37 * hash) + INSTANCETYPE_FIELD_NUMBER; hash = (53 * hash) + getInstanceType().hashCode(); hash = (37 * hash) + ORIGINHOST_FIELD_NUMBER; hash = (53 * hash) + getOriginHost().hashCode(); hash = (37 * hash) + ORIGINTYPE_FIELD_NUMBER; hash = (53 * hash) + getOriginType().hashCode(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.service.vod.model.business.OriginLine parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.business.OriginLine 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.OriginLine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.business.OriginLine 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.OriginLine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.service.vod.model.business.OriginLine 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.OriginLine 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.OriginLine 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.OriginLine 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.OriginLine 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.OriginLine 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.OriginLine 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.OriginLine 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.OriginLine} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.OriginLine) com.volcengine.service.vod.model.business.OriginLineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_OriginLine_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_OriginLine_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.service.vod.model.business.OriginLine.class, com.volcengine.service.vod.model.business.OriginLine.Builder.class); } // Construct using com.volcengine.service.vod.model.business.OriginLine.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(); address_ = ""; httpPort_ = ""; httpsPort_ = ""; instanceType_ = ""; originHost_ = ""; originType_ = ""; weight_ = ""; 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_OriginLine_descriptor; } @java.lang.Override public com.volcengine.service.vod.model.business.OriginLine getDefaultInstanceForType() { return com.volcengine.service.vod.model.business.OriginLine.getDefaultInstance(); } @java.lang.Override public com.volcengine.service.vod.model.business.OriginLine build() { com.volcengine.service.vod.model.business.OriginLine result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.service.vod.model.business.OriginLine buildPartial() { com.volcengine.service.vod.model.business.OriginLine result = new com.volcengine.service.vod.model.business.OriginLine(this); result.address_ = address_; result.httpPort_ = httpPort_; result.httpsPort_ = httpsPort_; result.instanceType_ = instanceType_; result.originHost_ = originHost_; result.originType_ = originType_; result.weight_ = weight_; 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.OriginLine) { return mergeFrom((com.volcengine.service.vod.model.business.OriginLine)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.service.vod.model.business.OriginLine other) { if (other == com.volcengine.service.vod.model.business.OriginLine.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (!other.getHttpPort().isEmpty()) { httpPort_ = other.httpPort_; onChanged(); } if (!other.getHttpsPort().isEmpty()) { httpsPort_ = other.httpsPort_; onChanged(); } if (!other.getInstanceType().isEmpty()) { instanceType_ = other.instanceType_; onChanged(); } if (!other.getOriginHost().isEmpty()) { originHost_ = other.originHost_; onChanged(); } if (!other.getOriginType().isEmpty()) { originType_ = other.originType_; onChanged(); } if (!other.getWeight().isEmpty()) { weight_ = other.weight_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.volcengine.service.vod.model.business.OriginLine parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.volcengine.service.vod.model.business.OriginLine) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object address_ = ""; /** *
     * 源站地址
     * 
* * string Address = 1; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 源站地址
     * 
* * string Address = 1; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 源站地址
     * 
* * string Address = 1; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
     * 源站地址
     * 
* * string Address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
     * 源站地址
     * 
* * string Address = 1; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private java.lang.Object httpPort_ = ""; /** *
     * HTTP协议端口
     * 
* * string HttpPort = 2; * @return The httpPort. */ public java.lang.String getHttpPort() { java.lang.Object ref = httpPort_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpPort_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * HTTP协议端口
     * 
* * string HttpPort = 2; * @return The bytes for httpPort. */ public com.google.protobuf.ByteString getHttpPortBytes() { java.lang.Object ref = httpPort_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpPort_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * HTTP协议端口
     * 
* * string HttpPort = 2; * @param value The httpPort to set. * @return This builder for chaining. */ public Builder setHttpPort( java.lang.String value) { if (value == null) { throw new NullPointerException(); } httpPort_ = value; onChanged(); return this; } /** *
     * HTTP协议端口
     * 
* * string HttpPort = 2; * @return This builder for chaining. */ public Builder clearHttpPort() { httpPort_ = getDefaultInstance().getHttpPort(); onChanged(); return this; } /** *
     * HTTP协议端口
     * 
* * string HttpPort = 2; * @param value The bytes for httpPort to set. * @return This builder for chaining. */ public Builder setHttpPortBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpPort_ = value; onChanged(); return this; } private java.lang.Object httpsPort_ = ""; /** *
     * HTTPS协议端口
     * 
* * string HttpsPort = 3; * @return The httpsPort. */ public java.lang.String getHttpsPort() { java.lang.Object ref = httpsPort_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsPort_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * HTTPS协议端口
     * 
* * string HttpsPort = 3; * @return The bytes for httpsPort. */ public com.google.protobuf.ByteString getHttpsPortBytes() { java.lang.Object ref = httpsPort_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpsPort_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * HTTPS协议端口
     * 
* * string HttpsPort = 3; * @param value The httpsPort to set. * @return This builder for chaining. */ public Builder setHttpsPort( java.lang.String value) { if (value == null) { throw new NullPointerException(); } httpsPort_ = value; onChanged(); return this; } /** *
     * HTTPS协议端口
     * 
* * string HttpsPort = 3; * @return This builder for chaining. */ public Builder clearHttpsPort() { httpsPort_ = getDefaultInstance().getHttpsPort(); onChanged(); return this; } /** *
     * HTTPS协议端口
     * 
* * string HttpsPort = 3; * @param value The bytes for httpsPort to set. * @return This builder for chaining. */ public Builder setHttpsPortBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpsPort_ = value; onChanged(); return this; } private java.lang.Object instanceType_ = ""; /** *
     * 源站的类型 ip/domain
     * 
* * string InstanceType = 4; * @return The instanceType. */ public java.lang.String getInstanceType() { java.lang.Object ref = instanceType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 源站的类型 ip/domain
     * 
* * string InstanceType = 4; * @return The bytes for instanceType. */ public com.google.protobuf.ByteString getInstanceTypeBytes() { java.lang.Object ref = instanceType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 源站的类型 ip/domain
     * 
* * string InstanceType = 4; * @param value The instanceType to set. * @return This builder for chaining. */ public Builder setInstanceType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceType_ = value; onChanged(); return this; } /** *
     * 源站的类型 ip/domain
     * 
* * string InstanceType = 4; * @return This builder for chaining. */ public Builder clearInstanceType() { instanceType_ = getDefaultInstance().getInstanceType(); onChanged(); return this; } /** *
     * 源站的类型 ip/domain
     * 
* * string InstanceType = 4; * @param value The bytes for instanceType to set. * @return This builder for chaining. */ public Builder setInstanceTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceType_ = value; onChanged(); return this; } private java.lang.Object originHost_ = ""; /** *
     * 回源请求访问的站点域名
     * 
* * string OriginHost = 5; * @return The originHost. */ public java.lang.String getOriginHost() { java.lang.Object ref = originHost_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originHost_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 回源请求访问的站点域名
     * 
* * string OriginHost = 5; * @return The bytes for originHost. */ public com.google.protobuf.ByteString getOriginHostBytes() { java.lang.Object ref = originHost_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originHost_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 回源请求访问的站点域名
     * 
* * string OriginHost = 5; * @param value The originHost to set. * @return This builder for chaining. */ public Builder setOriginHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } originHost_ = value; onChanged(); return this; } /** *
     * 回源请求访问的站点域名
     * 
* * string OriginHost = 5; * @return This builder for chaining. */ public Builder clearOriginHost() { originHost_ = getDefaultInstance().getOriginHost(); onChanged(); return this; } /** *
     * 回源请求访问的站点域名
     * 
* * string OriginHost = 5; * @param value The bytes for originHost to set. * @return This builder for chaining. */ public Builder setOriginHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originHost_ = value; onChanged(); return this; } private java.lang.Object originType_ = ""; /** *
     * 源站的类别 primary/backup
     * 
* * string OriginType = 6; * @return The originType. */ public java.lang.String getOriginType() { java.lang.Object ref = originType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 源站的类别 primary/backup
     * 
* * string OriginType = 6; * @return The bytes for originType. */ public com.google.protobuf.ByteString getOriginTypeBytes() { java.lang.Object ref = originType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 源站的类别 primary/backup
     * 
* * string OriginType = 6; * @param value The originType to set. * @return This builder for chaining. */ public Builder setOriginType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } originType_ = value; onChanged(); return this; } /** *
     * 源站的类别 primary/backup
     * 
* * string OriginType = 6; * @return This builder for chaining. */ public Builder clearOriginType() { originType_ = getDefaultInstance().getOriginType(); onChanged(); return this; } /** *
     * 源站的类别 primary/backup
     * 
* * string OriginType = 6; * @param value The bytes for originType to set. * @return This builder for chaining. */ public Builder setOriginTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originType_ = value; onChanged(); return this; } private java.lang.Object weight_ = ""; /** *
     * 源站的权重,取值范围是 1-100
     * 
* * string Weight = 7; * @return The weight. */ public java.lang.String getWeight() { java.lang.Object ref = weight_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); weight_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 源站的权重,取值范围是 1-100
     * 
* * string Weight = 7; * @return The bytes for weight. */ public com.google.protobuf.ByteString getWeightBytes() { java.lang.Object ref = weight_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); weight_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 源站的权重,取值范围是 1-100
     * 
* * string Weight = 7; * @param value The weight to set. * @return This builder for chaining. */ public Builder setWeight( java.lang.String value) { if (value == null) { throw new NullPointerException(); } weight_ = value; onChanged(); return this; } /** *
     * 源站的权重,取值范围是 1-100
     * 
* * string Weight = 7; * @return This builder for chaining. */ public Builder clearWeight() { weight_ = getDefaultInstance().getWeight(); onChanged(); return this; } /** *
     * 源站的权重,取值范围是 1-100
     * 
* * string Weight = 7; * @param value The bytes for weight to set. * @return This builder for chaining. */ public Builder setWeightBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); weight_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Volcengine.Vod.Models.Business.OriginLine) } // @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.OriginLine) private static final com.volcengine.service.vod.model.business.OriginLine DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.OriginLine(); } public static com.volcengine.service.vod.model.business.OriginLine getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OriginLine parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OriginLine(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.OriginLine getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy