Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: byteplus/vod/business/vod_cdn.proto
package com.byteplus.service.vod.model.business;
/**
* Protobuf type {@code Byteplus.Vod.Models.Business.VodDomainSourceInfo}
*/
public final class VodDomainSourceInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Byteplus.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.byteplus.service.vod.model.business.VodDomainOriginBucketInfo.Builder subBuilder = null;
if (bucket_ != null) {
subBuilder = bucket_.toBuilder();
}
bucket_ = input.readMessage(com.byteplus.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.byteplus.service.vod.model.business.VodCdn.internal_static_Byteplus_Vod_Models_Business_VodDomainSourceInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.byteplus.service.vod.model.business.VodCdn.internal_static_Byteplus_Vod_Models_Business_VodDomainSourceInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.byteplus.service.vod.model.business.VodDomainSourceInfo.class, com.byteplus.service.vod.model.business.VodDomainSourceInfo.Builder.class);
}
public static final int SOURCESTATIONTYPE_FIELD_NUMBER = 1;
private int sourceStationType_;
/**
*
*源站类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1;
* @return The enum numeric value on the wire for sourceStationType.
*/
@java.lang.Override public int getSourceStationTypeValue() {
return sourceStationType_;
}
/**
*
*源站类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1;
* @return The sourceStationType.
*/
@java.lang.Override public com.byteplus.service.vod.model.business.VodDomainSourceStationType getSourceStationType() {
@SuppressWarnings("deprecation")
com.byteplus.service.vod.model.business.VodDomainSourceStationType result = com.byteplus.service.vod.model.business.VodDomainSourceStationType.valueOf(sourceStationType_);
return result == null ? com.byteplus.service.vod.model.business.VodDomainSourceStationType.UNRECOGNIZED : result;
}
public static final int SOURCESTATIONADDRESSTYPE_FIELD_NUMBER = 2;
private int sourceStationAddressType_;
/**
*
*源站地址类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2;
* @return The enum numeric value on the wire for sourceStationAddressType.
*/
@java.lang.Override public int getSourceStationAddressTypeValue() {
return sourceStationAddressType_;
}
/**
*
*源站地址类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2;
* @return The sourceStationAddressType.
*/
@java.lang.Override public com.byteplus.service.vod.model.business.VodDomainSourceStationAddressType getSourceStationAddressType() {
@SuppressWarnings("deprecation")
com.byteplus.service.vod.model.business.VodDomainSourceStationAddressType result = com.byteplus.service.vod.model.business.VodDomainSourceStationAddressType.valueOf(sourceStationAddressType_);
return result == null ? com.byteplus.service.vod.model.business.VodDomainSourceStationAddressType.UNRECOGNIZED : result;
}
public static final int ORIGIN_FIELD_NUMBER = 3;
private volatile java.lang.Object origin_;
/**
*
*
* .Byteplus.Vod.Models.Business.VodDomainOriginBucketInfo Bucket = 4;
*/
@java.lang.Override
public com.byteplus.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.byteplus.service.vod.model.business.VodDomainSourceStationType.UndefinedVodDomainSourceStationType.getNumber()) {
output.writeEnum(1, sourceStationType_);
}
if (sourceStationAddressType_ != com.byteplus.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.byteplus.service.vod.model.business.VodDomainSourceStationType.UndefinedVodDomainSourceStationType.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, sourceStationType_);
}
if (sourceStationAddressType_ != com.byteplus.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.byteplus.service.vod.model.business.VodDomainSourceInfo)) {
return super.equals(obj);
}
com.byteplus.service.vod.model.business.VodDomainSourceInfo other = (com.byteplus.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.byteplus.service.vod.model.business.VodDomainSourceInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.byteplus.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.byteplus.service.vod.model.business.VodDomainSourceInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.byteplus.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.byteplus.service.vod.model.business.VodDomainSourceInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.byteplus.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.byteplus.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.byteplus.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.byteplus.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.byteplus.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.byteplus.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.byteplus.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.byteplus.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 Byteplus.Vod.Models.Business.VodDomainSourceInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Byteplus.Vod.Models.Business.VodDomainSourceInfo)
com.byteplus.service.vod.model.business.VodDomainSourceInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.byteplus.service.vod.model.business.VodCdn.internal_static_Byteplus_Vod_Models_Business_VodDomainSourceInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.byteplus.service.vod.model.business.VodCdn.internal_static_Byteplus_Vod_Models_Business_VodDomainSourceInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.byteplus.service.vod.model.business.VodDomainSourceInfo.class, com.byteplus.service.vod.model.business.VodDomainSourceInfo.Builder.class);
}
// Construct using com.byteplus.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.byteplus.service.vod.model.business.VodCdn.internal_static_Byteplus_Vod_Models_Business_VodDomainSourceInfo_descriptor;
}
@java.lang.Override
public com.byteplus.service.vod.model.business.VodDomainSourceInfo getDefaultInstanceForType() {
return com.byteplus.service.vod.model.business.VodDomainSourceInfo.getDefaultInstance();
}
@java.lang.Override
public com.byteplus.service.vod.model.business.VodDomainSourceInfo build() {
com.byteplus.service.vod.model.business.VodDomainSourceInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.byteplus.service.vod.model.business.VodDomainSourceInfo buildPartial() {
com.byteplus.service.vod.model.business.VodDomainSourceInfo result = new com.byteplus.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.byteplus.service.vod.model.business.VodDomainSourceInfo) {
return mergeFrom((com.byteplus.service.vod.model.business.VodDomainSourceInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.byteplus.service.vod.model.business.VodDomainSourceInfo other) {
if (other == com.byteplus.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.byteplus.service.vod.model.business.VodDomainSourceInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.byteplus.service.vod.model.business.VodDomainSourceInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sourceStationType_ = 0;
/**
*
*源站类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1;
* @return The enum numeric value on the wire for sourceStationType.
*/
@java.lang.Override public int getSourceStationTypeValue() {
return sourceStationType_;
}
/**
*
*源站类型
*
*
* .Byteplus.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;
}
/**
*
*源站类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1;
* @return The sourceStationType.
*/
@java.lang.Override
public com.byteplus.service.vod.model.business.VodDomainSourceStationType getSourceStationType() {
@SuppressWarnings("deprecation")
com.byteplus.service.vod.model.business.VodDomainSourceStationType result = com.byteplus.service.vod.model.business.VodDomainSourceStationType.valueOf(sourceStationType_);
return result == null ? com.byteplus.service.vod.model.business.VodDomainSourceStationType.UNRECOGNIZED : result;
}
/**
*
*源站类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1;
* @param value The sourceStationType to set.
* @return This builder for chaining.
*/
public Builder setSourceStationType(com.byteplus.service.vod.model.business.VodDomainSourceStationType value) {
if (value == null) {
throw new NullPointerException();
}
sourceStationType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*源站类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationType SourceStationType = 1;
* @return This builder for chaining.
*/
public Builder clearSourceStationType() {
sourceStationType_ = 0;
onChanged();
return this;
}
private int sourceStationAddressType_ = 0;
/**
*
*源站地址类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2;
* @return The enum numeric value on the wire for sourceStationAddressType.
*/
@java.lang.Override public int getSourceStationAddressTypeValue() {
return sourceStationAddressType_;
}
/**
*
*源站地址类型
*
*
* .Byteplus.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;
}
/**
*
*源站地址类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2;
* @return The sourceStationAddressType.
*/
@java.lang.Override
public com.byteplus.service.vod.model.business.VodDomainSourceStationAddressType getSourceStationAddressType() {
@SuppressWarnings("deprecation")
com.byteplus.service.vod.model.business.VodDomainSourceStationAddressType result = com.byteplus.service.vod.model.business.VodDomainSourceStationAddressType.valueOf(sourceStationAddressType_);
return result == null ? com.byteplus.service.vod.model.business.VodDomainSourceStationAddressType.UNRECOGNIZED : result;
}
/**
*
*源站地址类型
*
*
* .Byteplus.Vod.Models.Business.VodDomainSourceStationAddressType SourceStationAddressType = 2;
* @param value The sourceStationAddressType to set.
* @return This builder for chaining.
*/
public Builder setSourceStationAddressType(com.byteplus.service.vod.model.business.VodDomainSourceStationAddressType value) {
if (value == null) {
throw new NullPointerException();
}
sourceStationAddressType_ = value.getNumber();
onChanged();
return this;
}
/**
*