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

yandex.cloud.api.cdn.v1.OriginOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/cdn/v1/origin.proto

package yandex.cloud.api.cdn.v1;

public final class OriginOuterClass {
  private OriginOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface OriginOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.cdn.v1.Origin)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the origin. 
     * 
* * int64 id = 1; * @return The id. */ long getId(); /** *
     * ID of the parent origin group.
     * 
* * int64 origin_group_id = 2; * @return The originGroupId. */ long getOriginGroupId(); /** *
     * IP address or Domain name of your origin and the port (if custom).
     * Used if [meta] variant is `common`.
     * 
* * string source = 3; * @return The source. */ java.lang.String getSource(); /** *
     * IP address or Domain name of your origin and the port (if custom).
     * Used if [meta] variant is `common`.
     * 
* * string source = 3; * @return The bytes for source. */ com.google.protobuf.ByteString getSourceBytes(); /** *
     * The setting allows to enable or disable an Origin source in the Origins group.
     * It has two possible values:
     * True - The origin is enabled and used as a source for the CDN. An origins
     * group must contain at least one enabled origin. 
     * False - The origin is disabled and the CDN is not using it to pull content.
     * 
* * bool enabled = 4; * @return The enabled. */ boolean getEnabled(); /** *
     * Specifies whether the origin is used in its origin group as backup. 
     * A backup origin is used when one of active origins becomes unavailable.
     * 
* * bool backup = 5; * @return The backup. */ boolean getBackup(); /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; * @return Whether the meta field is set. */ boolean hasMeta(); /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; * @return The meta. */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta getMeta(); /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder getMetaOrBuilder(); } /** *
   * An origin. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
   * 
* * Protobuf type {@code yandex.cloud.cdn.v1.Origin} */ public static final class Origin extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.cdn.v1.Origin) OriginOrBuilder { private static final long serialVersionUID = 0L; // Use Origin.newBuilder() to construct. private Origin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Origin() { source_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Origin(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Origin( 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: { id_ = input.readInt64(); break; } case 16: { originGroupId_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); source_ = s; break; } case 32: { enabled_ = input.readBool(); break; } case 40: { backup_ = input.readBool(); break; } case 50: { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder subBuilder = null; if (meta_ != null) { subBuilder = meta_.toBuilder(); } meta_ = input.readMessage(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(meta_); meta_ = 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 yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_Origin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_Origin_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.Origin.class, yandex.cloud.api.cdn.v1.OriginOuterClass.Origin.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private long id_; /** *
     * ID of the origin. 
     * 
* * int64 id = 1; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int ORIGIN_GROUP_ID_FIELD_NUMBER = 2; private long originGroupId_; /** *
     * ID of the parent origin group.
     * 
* * int64 origin_group_id = 2; * @return The originGroupId. */ @java.lang.Override public long getOriginGroupId() { return originGroupId_; } public static final int SOURCE_FIELD_NUMBER = 3; private volatile java.lang.Object source_; /** *
     * IP address or Domain name of your origin and the port (if custom).
     * Used if [meta] variant is `common`.
     * 
* * string source = 3; * @return The source. */ @java.lang.Override public java.lang.String getSource() { java.lang.Object ref = source_; 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(); source_ = s; return s; } } /** *
     * IP address or Domain name of your origin and the port (if custom).
     * Used if [meta] variant is `common`.
     * 
* * string source = 3; * @return The bytes for source. */ @java.lang.Override public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLED_FIELD_NUMBER = 4; private boolean enabled_; /** *
     * The setting allows to enable or disable an Origin source in the Origins group.
     * It has two possible values:
     * True - The origin is enabled and used as a source for the CDN. An origins
     * group must contain at least one enabled origin. 
     * False - The origin is disabled and the CDN is not using it to pull content.
     * 
* * bool enabled = 4; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } public static final int BACKUP_FIELD_NUMBER = 5; private boolean backup_; /** *
     * Specifies whether the origin is used in its origin group as backup. 
     * A backup origin is used when one of active origins becomes unavailable.
     * 
* * bool backup = 5; * @return The backup. */ @java.lang.Override public boolean getBackup() { return backup_; } public static final int META_FIELD_NUMBER = 6; private yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta meta_; /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; * @return Whether the meta field is set. */ @java.lang.Override public boolean hasMeta() { return meta_ != null; } /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; * @return The meta. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta getMeta() { return meta_ == null ? yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.getDefaultInstance() : meta_; } /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder getMetaOrBuilder() { return getMeta(); } 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 (id_ != 0L) { output.writeInt64(1, id_); } if (originGroupId_ != 0L) { output.writeInt64(2, originGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); } if (enabled_ != false) { output.writeBool(4, enabled_); } if (backup_ != false) { output.writeBool(5, backup_); } if (meta_ != null) { output.writeMessage(6, getMeta()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, id_); } if (originGroupId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, originGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); } if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, enabled_); } if (backup_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, backup_); } if (meta_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getMeta()); } 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 yandex.cloud.api.cdn.v1.OriginOuterClass.Origin)) { return super.equals(obj); } yandex.cloud.api.cdn.v1.OriginOuterClass.Origin other = (yandex.cloud.api.cdn.v1.OriginOuterClass.Origin) obj; if (getId() != other.getId()) return false; if (getOriginGroupId() != other.getOriginGroupId()) return false; if (!getSource() .equals(other.getSource())) return false; if (getEnabled() != other.getEnabled()) return false; if (getBackup() != other.getBackup()) return false; if (hasMeta() != other.hasMeta()) return false; if (hasMeta()) { if (!getMeta() .equals(other.getMeta())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); hash = (37 * hash) + ORIGIN_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOriginGroupId()); hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); hash = (37 * hash) + BACKUP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBackup()); if (hasMeta()) { hash = (37 * hash) + META_FIELD_NUMBER; hash = (53 * hash) + getMeta().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin 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 yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin 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 yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin 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(yandex.cloud.api.cdn.v1.OriginOuterClass.Origin 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; } /** *
     * An origin. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
     * 
* * Protobuf type {@code yandex.cloud.cdn.v1.Origin} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.cdn.v1.Origin) yandex.cloud.api.cdn.v1.OriginOuterClass.OriginOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_Origin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_Origin_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.Origin.class, yandex.cloud.api.cdn.v1.OriginOuterClass.Origin.Builder.class); } // Construct using yandex.cloud.api.cdn.v1.OriginOuterClass.Origin.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(); id_ = 0L; originGroupId_ = 0L; source_ = ""; enabled_ = false; backup_ = false; if (metaBuilder_ == null) { meta_ = null; } else { meta_ = null; metaBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_Origin_descriptor; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.Origin getDefaultInstanceForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.Origin.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.Origin build() { yandex.cloud.api.cdn.v1.OriginOuterClass.Origin result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.Origin buildPartial() { yandex.cloud.api.cdn.v1.OriginOuterClass.Origin result = new yandex.cloud.api.cdn.v1.OriginOuterClass.Origin(this); result.id_ = id_; result.originGroupId_ = originGroupId_; result.source_ = source_; result.enabled_ = enabled_; result.backup_ = backup_; if (metaBuilder_ == null) { result.meta_ = meta_; } else { result.meta_ = metaBuilder_.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 yandex.cloud.api.cdn.v1.OriginOuterClass.Origin) { return mergeFrom((yandex.cloud.api.cdn.v1.OriginOuterClass.Origin)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.cdn.v1.OriginOuterClass.Origin other) { if (other == yandex.cloud.api.cdn.v1.OriginOuterClass.Origin.getDefaultInstance()) return this; if (other.getId() != 0L) { setId(other.getId()); } if (other.getOriginGroupId() != 0L) { setOriginGroupId(other.getOriginGroupId()); } if (!other.getSource().isEmpty()) { source_ = other.source_; onChanged(); } if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } if (other.getBackup() != false) { setBackup(other.getBackup()); } if (other.hasMeta()) { mergeMeta(other.getMeta()); } 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 { yandex.cloud.api.cdn.v1.OriginOuterClass.Origin parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.cdn.v1.OriginOuterClass.Origin) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long id_ ; /** *
       * ID of the origin. 
       * 
* * int64 id = 1; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
       * ID of the origin. 
       * 
* * int64 id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; onChanged(); return this; } /** *
       * ID of the origin. 
       * 
* * int64 id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = 0L; onChanged(); return this; } private long originGroupId_ ; /** *
       * ID of the parent origin group.
       * 
* * int64 origin_group_id = 2; * @return The originGroupId. */ @java.lang.Override public long getOriginGroupId() { return originGroupId_; } /** *
       * ID of the parent origin group.
       * 
* * int64 origin_group_id = 2; * @param value The originGroupId to set. * @return This builder for chaining. */ public Builder setOriginGroupId(long value) { originGroupId_ = value; onChanged(); return this; } /** *
       * ID of the parent origin group.
       * 
* * int64 origin_group_id = 2; * @return This builder for chaining. */ public Builder clearOriginGroupId() { originGroupId_ = 0L; onChanged(); return this; } private java.lang.Object source_ = ""; /** *
       * IP address or Domain name of your origin and the port (if custom).
       * Used if [meta] variant is `common`.
       * 
* * string source = 3; * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * IP address or Domain name of your origin and the port (if custom).
       * Used if [meta] variant is `common`.
       * 
* * string source = 3; * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * IP address or Domain name of your origin and the port (if custom).
       * Used if [meta] variant is `common`.
       * 
* * string source = 3; * @param value The source to set. * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); return this; } /** *
       * IP address or Domain name of your origin and the port (if custom).
       * Used if [meta] variant is `common`.
       * 
* * string source = 3; * @return This builder for chaining. */ public Builder clearSource() { source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** *
       * IP address or Domain name of your origin and the port (if custom).
       * Used if [meta] variant is `common`.
       * 
* * string source = 3; * @param value The bytes for source to set. * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); source_ = value; onChanged(); return this; } private boolean enabled_ ; /** *
       * The setting allows to enable or disable an Origin source in the Origins group.
       * It has two possible values:
       * True - The origin is enabled and used as a source for the CDN. An origins
       * group must contain at least one enabled origin. 
       * False - The origin is disabled and the CDN is not using it to pull content.
       * 
* * bool enabled = 4; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** *
       * The setting allows to enable or disable an Origin source in the Origins group.
       * It has two possible values:
       * True - The origin is enabled and used as a source for the CDN. An origins
       * group must contain at least one enabled origin. 
       * False - The origin is disabled and the CDN is not using it to pull content.
       * 
* * bool enabled = 4; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; onChanged(); return this; } /** *
       * The setting allows to enable or disable an Origin source in the Origins group.
       * It has two possible values:
       * True - The origin is enabled and used as a source for the CDN. An origins
       * group must contain at least one enabled origin. 
       * False - The origin is disabled and the CDN is not using it to pull content.
       * 
* * bool enabled = 4; * @return This builder for chaining. */ public Builder clearEnabled() { enabled_ = false; onChanged(); return this; } private boolean backup_ ; /** *
       * Specifies whether the origin is used in its origin group as backup. 
       * A backup origin is used when one of active origins becomes unavailable.
       * 
* * bool backup = 5; * @return The backup. */ @java.lang.Override public boolean getBackup() { return backup_; } /** *
       * Specifies whether the origin is used in its origin group as backup. 
       * A backup origin is used when one of active origins becomes unavailable.
       * 
* * bool backup = 5; * @param value The backup to set. * @return This builder for chaining. */ public Builder setBackup(boolean value) { backup_ = value; onChanged(); return this; } /** *
       * Specifies whether the origin is used in its origin group as backup. 
       * A backup origin is used when one of active origins becomes unavailable.
       * 
* * bool backup = 5; * @return This builder for chaining. */ public Builder clearBackup() { backup_ = false; onChanged(); return this; } private yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta meta_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder> metaBuilder_; /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; * @return Whether the meta field is set. */ public boolean hasMeta() { return metaBuilder_ != null || meta_ != null; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; * @return The meta. */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta getMeta() { if (metaBuilder_ == null) { return meta_ == null ? yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.getDefaultInstance() : meta_; } else { return metaBuilder_.getMessage(); } } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; */ public Builder setMeta(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta value) { if (metaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } meta_ = value; onChanged(); } else { metaBuilder_.setMessage(value); } return this; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; */ public Builder setMeta( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder builderForValue) { if (metaBuilder_ == null) { meta_ = builderForValue.build(); onChanged(); } else { metaBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; */ public Builder mergeMeta(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta value) { if (metaBuilder_ == null) { if (meta_ != null) { meta_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.newBuilder(meta_).mergeFrom(value).buildPartial(); } else { meta_ = value; } onChanged(); } else { metaBuilder_.mergeFrom(value); } return this; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; */ public Builder clearMeta() { if (metaBuilder_ == null) { meta_ = null; onChanged(); } else { meta_ = null; metaBuilder_ = null; } return this; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder getMetaBuilder() { onChanged(); return getMetaFieldBuilder().getBuilder(); } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder getMetaOrBuilder() { if (metaBuilder_ != null) { return metaBuilder_.getMessageOrBuilder(); } else { return meta_ == null ? yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.getDefaultInstance() : meta_; } } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 6; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder> getMetaFieldBuilder() { if (metaBuilder_ == null) { metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder>( getMeta(), getParentForChildren(), isClean()); meta_ = null; } return metaBuilder_; } @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:yandex.cloud.cdn.v1.Origin) } // @@protoc_insertion_point(class_scope:yandex.cloud.cdn.v1.Origin) private static final yandex.cloud.api.cdn.v1.OriginOuterClass.Origin DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.cdn.v1.OriginOuterClass.Origin(); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.Origin getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Origin parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Origin(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 yandex.cloud.api.cdn.v1.OriginOuterClass.Origin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OriginParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.cdn.v1.OriginParams) com.google.protobuf.MessageOrBuilder { /** *
     * Source: IP address or Domain name of your origin and the port (if custom).
     * 
* * string source = 1; * @return The source. */ java.lang.String getSource(); /** *
     * Source: IP address or Domain name of your origin and the port (if custom).
     * 
* * string source = 1; * @return The bytes for source. */ com.google.protobuf.ByteString getSourceBytes(); /** *
     * The setting allows to enable or disable an Origin source in the Origins group.
     * It has two possible values:
     * True - The origin is enabled and used as a source for the CDN. An origins
     * group must contain at least one enabled origins. False - The origin is disabled
     * and the CDN is not using it to pull content.
     * 
* * bool enabled = 2; * @return The enabled. */ boolean getEnabled(); /** *
     * backup option has two possible values:
     *   True - The option is active. The origin will not be used until one of
     *          active origins become unavailable.
     *   False - The option is disabled.
     * 
* * bool backup = 3; * @return The backup. */ boolean getBackup(); /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; * @return Whether the meta field is set. */ boolean hasMeta(); /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; * @return The meta. */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta getMeta(); /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder getMetaOrBuilder(); } /** *
   * Origin parameters. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
   * 
* * Protobuf type {@code yandex.cloud.cdn.v1.OriginParams} */ public static final class OriginParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.cdn.v1.OriginParams) OriginParamsOrBuilder { private static final long serialVersionUID = 0L; // Use OriginParams.newBuilder() to construct. private OriginParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OriginParams() { source_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OriginParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OriginParams( 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(); source_ = s; break; } case 16: { enabled_ = input.readBool(); break; } case 24: { backup_ = input.readBool(); break; } case 34: { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder subBuilder = null; if (meta_ != null) { subBuilder = meta_.toBuilder(); } meta_ = input.readMessage(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(meta_); meta_ = 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 yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginParams_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams.class, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object source_; /** *
     * Source: IP address or Domain name of your origin and the port (if custom).
     * 
* * string source = 1; * @return The source. */ @java.lang.Override public java.lang.String getSource() { java.lang.Object ref = source_; 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(); source_ = s; return s; } } /** *
     * Source: IP address or Domain name of your origin and the port (if custom).
     * 
* * string source = 1; * @return The bytes for source. */ @java.lang.Override public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLED_FIELD_NUMBER = 2; private boolean enabled_; /** *
     * The setting allows to enable or disable an Origin source in the Origins group.
     * It has two possible values:
     * True - The origin is enabled and used as a source for the CDN. An origins
     * group must contain at least one enabled origins. False - The origin is disabled
     * and the CDN is not using it to pull content.
     * 
* * bool enabled = 2; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } public static final int BACKUP_FIELD_NUMBER = 3; private boolean backup_; /** *
     * backup option has two possible values:
     *   True - The option is active. The origin will not be used until one of
     *          active origins become unavailable.
     *   False - The option is disabled.
     * 
* * bool backup = 3; * @return The backup. */ @java.lang.Override public boolean getBackup() { return backup_; } public static final int META_FIELD_NUMBER = 4; private yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta meta_; /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; * @return Whether the meta field is set. */ @java.lang.Override public boolean hasMeta() { return meta_ != null; } /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; * @return The meta. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta getMeta() { return meta_ == null ? yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.getDefaultInstance() : meta_; } /** *
     * Set up origin of the content.
     * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder getMetaOrBuilder() { return getMeta(); } 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(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); } if (enabled_ != false) { output.writeBool(2, enabled_); } if (backup_ != false) { output.writeBool(3, backup_); } if (meta_ != null) { output.writeMessage(4, getMeta()); } 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(source_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); } if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, enabled_); } if (backup_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, backup_); } if (meta_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMeta()); } 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams)) { return super.equals(obj); } yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams other = (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams) obj; if (!getSource() .equals(other.getSource())) return false; if (getEnabled() != other.getEnabled()) return false; if (getBackup() != other.getBackup()) return false; if (hasMeta() != other.hasMeta()) return false; if (hasMeta()) { if (!getMeta() .equals(other.getMeta())) 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) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); hash = (37 * hash) + BACKUP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBackup()); if (hasMeta()) { hash = (37 * hash) + META_FIELD_NUMBER; hash = (53 * hash) + getMeta().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams 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(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams 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; } /** *
     * Origin parameters. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
     * 
* * Protobuf type {@code yandex.cloud.cdn.v1.OriginParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.cdn.v1.OriginParams) yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginParams_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams.class, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams.Builder.class); } // Construct using yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams.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(); source_ = ""; enabled_ = false; backup_ = false; if (metaBuilder_ == null) { meta_ = null; } else { meta_ = null; metaBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginParams_descriptor; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams getDefaultInstanceForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams build() { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams buildPartial() { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams result = new yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams(this); result.source_ = source_; result.enabled_ = enabled_; result.backup_ = backup_; if (metaBuilder_ == null) { result.meta_ = meta_; } else { result.meta_ = metaBuilder_.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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams) { return mergeFrom((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams other) { if (other == yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams.getDefaultInstance()) return this; if (!other.getSource().isEmpty()) { source_ = other.source_; onChanged(); } if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } if (other.getBackup() != false) { setBackup(other.getBackup()); } if (other.hasMeta()) { mergeMeta(other.getMeta()); } 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 { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object source_ = ""; /** *
       * Source: IP address or Domain name of your origin and the port (if custom).
       * 
* * string source = 1; * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Source: IP address or Domain name of your origin and the port (if custom).
       * 
* * string source = 1; * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Source: IP address or Domain name of your origin and the port (if custom).
       * 
* * string source = 1; * @param value The source to set. * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); return this; } /** *
       * Source: IP address or Domain name of your origin and the port (if custom).
       * 
* * string source = 1; * @return This builder for chaining. */ public Builder clearSource() { source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** *
       * Source: IP address or Domain name of your origin and the port (if custom).
       * 
* * string source = 1; * @param value The bytes for source to set. * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); source_ = value; onChanged(); return this; } private boolean enabled_ ; /** *
       * The setting allows to enable or disable an Origin source in the Origins group.
       * It has two possible values:
       * True - The origin is enabled and used as a source for the CDN. An origins
       * group must contain at least one enabled origins. False - The origin is disabled
       * and the CDN is not using it to pull content.
       * 
* * bool enabled = 2; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** *
       * The setting allows to enable or disable an Origin source in the Origins group.
       * It has two possible values:
       * True - The origin is enabled and used as a source for the CDN. An origins
       * group must contain at least one enabled origins. False - The origin is disabled
       * and the CDN is not using it to pull content.
       * 
* * bool enabled = 2; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; onChanged(); return this; } /** *
       * The setting allows to enable or disable an Origin source in the Origins group.
       * It has two possible values:
       * True - The origin is enabled and used as a source for the CDN. An origins
       * group must contain at least one enabled origins. False - The origin is disabled
       * and the CDN is not using it to pull content.
       * 
* * bool enabled = 2; * @return This builder for chaining. */ public Builder clearEnabled() { enabled_ = false; onChanged(); return this; } private boolean backup_ ; /** *
       * backup option has two possible values:
       *   True - The option is active. The origin will not be used until one of
       *          active origins become unavailable.
       *   False - The option is disabled.
       * 
* * bool backup = 3; * @return The backup. */ @java.lang.Override public boolean getBackup() { return backup_; } /** *
       * backup option has two possible values:
       *   True - The option is active. The origin will not be used until one of
       *          active origins become unavailable.
       *   False - The option is disabled.
       * 
* * bool backup = 3; * @param value The backup to set. * @return This builder for chaining. */ public Builder setBackup(boolean value) { backup_ = value; onChanged(); return this; } /** *
       * backup option has two possible values:
       *   True - The option is active. The origin will not be used until one of
       *          active origins become unavailable.
       *   False - The option is disabled.
       * 
* * bool backup = 3; * @return This builder for chaining. */ public Builder clearBackup() { backup_ = false; onChanged(); return this; } private yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta meta_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder> metaBuilder_; /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; * @return Whether the meta field is set. */ public boolean hasMeta() { return metaBuilder_ != null || meta_ != null; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; * @return The meta. */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta getMeta() { if (metaBuilder_ == null) { return meta_ == null ? yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.getDefaultInstance() : meta_; } else { return metaBuilder_.getMessage(); } } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; */ public Builder setMeta(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta value) { if (metaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } meta_ = value; onChanged(); } else { metaBuilder_.setMessage(value); } return this; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; */ public Builder setMeta( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder builderForValue) { if (metaBuilder_ == null) { meta_ = builderForValue.build(); onChanged(); } else { metaBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; */ public Builder mergeMeta(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta value) { if (metaBuilder_ == null) { if (meta_ != null) { meta_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.newBuilder(meta_).mergeFrom(value).buildPartial(); } else { meta_ = value; } onChanged(); } else { metaBuilder_.mergeFrom(value); } return this; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; */ public Builder clearMeta() { if (metaBuilder_ == null) { meta_ = null; onChanged(); } else { meta_ = null; metaBuilder_ = null; } return this; } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder getMetaBuilder() { onChanged(); return getMetaFieldBuilder().getBuilder(); } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder getMetaOrBuilder() { if (metaBuilder_ != null) { return metaBuilder_.getMessageOrBuilder(); } else { return meta_ == null ? yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.getDefaultInstance() : meta_; } } /** *
       * Set up origin of the content.
       * 
* * .yandex.cloud.cdn.v1.OriginMeta meta = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder> getMetaFieldBuilder() { if (metaBuilder_ == null) { metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder>( getMeta(), getParentForChildren(), isClean()); meta_ = null; } return metaBuilder_; } @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:yandex.cloud.cdn.v1.OriginParams) } // @@protoc_insertion_point(class_scope:yandex.cloud.cdn.v1.OriginParams) private static final yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams(); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OriginParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OriginParams(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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OriginMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.cdn.v1.OriginMeta) com.google.protobuf.MessageOrBuilder { /** *
     * A server with a domain name linked to it
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; * @return Whether the common field is set. */ boolean hasCommon(); /** *
     * A server with a domain name linked to it
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; * @return The common. */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getCommon(); /** *
     * A server with a domain name linked to it
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder getCommonOrBuilder(); /** *
     * An Object Storage bucket not configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; * @return Whether the bucket field is set. */ boolean hasBucket(); /** *
     * An Object Storage bucket not configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; * @return The bucket. */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getBucket(); /** *
     * An Object Storage bucket not configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder getBucketOrBuilder(); /** *
     * An Object Storage bucket configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; * @return Whether the website field is set. */ boolean hasWebsite(); /** *
     * An Object Storage bucket configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; * @return The website. */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getWebsite(); /** *
     * An Object Storage bucket configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder getWebsiteOrBuilder(); /** *
     * An L7 load balancer from Application Load Balancer.
     * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
     * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; * @return Whether the balancer field is set. */ boolean hasBalancer(); /** *
     * An L7 load balancer from Application Load Balancer.
     * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
     * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; * @return The balancer. */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta getBalancer(); /** *
     * An L7 load balancer from Application Load Balancer.
     * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
     * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; */ yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMetaOrBuilder getBalancerOrBuilder(); public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.OriginMetaVariantCase getOriginMetaVariantCase(); } /** *
   * Origin type. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
   * 
* * Protobuf type {@code yandex.cloud.cdn.v1.OriginMeta} */ public static final class OriginMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.cdn.v1.OriginMeta) OriginMetaOrBuilder { private static final long serialVersionUID = 0L; // Use OriginMeta.newBuilder() to construct. private OriginMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OriginMeta() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OriginMeta(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OriginMeta( 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: { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder subBuilder = null; if (originMetaVariantCase_ == 1) { subBuilder = ((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_).toBuilder(); } originMetaVariant_ = input.readMessage(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_); originMetaVariant_ = subBuilder.buildPartial(); } originMetaVariantCase_ = 1; break; } case 18: { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder subBuilder = null; if (originMetaVariantCase_ == 2) { subBuilder = ((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_).toBuilder(); } originMetaVariant_ = input.readMessage(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_); originMetaVariant_ = subBuilder.buildPartial(); } originMetaVariantCase_ = 2; break; } case 26: { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder subBuilder = null; if (originMetaVariantCase_ == 3) { subBuilder = ((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_).toBuilder(); } originMetaVariant_ = input.readMessage(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_); originMetaVariant_ = subBuilder.buildPartial(); } originMetaVariantCase_ = 3; break; } case 34: { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.Builder subBuilder = null; if (originMetaVariantCase_ == 4) { subBuilder = ((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_).toBuilder(); } originMetaVariant_ = input.readMessage(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_); originMetaVariant_ = subBuilder.buildPartial(); } originMetaVariantCase_ = 4; 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 yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.class, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder.class); } private int originMetaVariantCase_ = 0; private java.lang.Object originMetaVariant_; public enum OriginMetaVariantCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { COMMON(1), BUCKET(2), WEBSITE(3), BALANCER(4), ORIGINMETAVARIANT_NOT_SET(0); private final int value; private OriginMetaVariantCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static OriginMetaVariantCase valueOf(int value) { return forNumber(value); } public static OriginMetaVariantCase forNumber(int value) { switch (value) { case 1: return COMMON; case 2: return BUCKET; case 3: return WEBSITE; case 4: return BALANCER; case 0: return ORIGINMETAVARIANT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public OriginMetaVariantCase getOriginMetaVariantCase() { return OriginMetaVariantCase.forNumber( originMetaVariantCase_); } public static final int COMMON_FIELD_NUMBER = 1; /** *
     * A server with a domain name linked to it
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; * @return Whether the common field is set. */ @java.lang.Override public boolean hasCommon() { return originMetaVariantCase_ == 1; } /** *
     * A server with a domain name linked to it
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; * @return The common. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getCommon() { if (originMetaVariantCase_ == 1) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } /** *
     * A server with a domain name linked to it
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder getCommonOrBuilder() { if (originMetaVariantCase_ == 1) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } public static final int BUCKET_FIELD_NUMBER = 2; /** *
     * An Object Storage bucket not configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; * @return Whether the bucket field is set. */ @java.lang.Override public boolean hasBucket() { return originMetaVariantCase_ == 2; } /** *
     * An Object Storage bucket not configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; * @return The bucket. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getBucket() { if (originMetaVariantCase_ == 2) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } /** *
     * An Object Storage bucket not configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder getBucketOrBuilder() { if (originMetaVariantCase_ == 2) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } public static final int WEBSITE_FIELD_NUMBER = 3; /** *
     * An Object Storage bucket configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; * @return Whether the website field is set. */ @java.lang.Override public boolean hasWebsite() { return originMetaVariantCase_ == 3; } /** *
     * An Object Storage bucket configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; * @return The website. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getWebsite() { if (originMetaVariantCase_ == 3) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } /** *
     * An Object Storage bucket configured as a static site hosting.
     * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder getWebsiteOrBuilder() { if (originMetaVariantCase_ == 3) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } public static final int BALANCER_FIELD_NUMBER = 4; /** *
     * An L7 load balancer from Application Load Balancer.
     * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
     * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; * @return Whether the balancer field is set. */ @java.lang.Override public boolean hasBalancer() { return originMetaVariantCase_ == 4; } /** *
     * An L7 load balancer from Application Load Balancer.
     * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
     * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; * @return The balancer. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta getBalancer() { if (originMetaVariantCase_ == 4) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.getDefaultInstance(); } /** *
     * An L7 load balancer from Application Load Balancer.
     * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
     * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMetaOrBuilder getBalancerOrBuilder() { if (originMetaVariantCase_ == 4) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.getDefaultInstance(); } 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 (originMetaVariantCase_ == 1) { output.writeMessage(1, (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_); } if (originMetaVariantCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_); } if (originMetaVariantCase_ == 3) { output.writeMessage(3, (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_); } if (originMetaVariantCase_ == 4) { output.writeMessage(4, (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (originMetaVariantCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_); } if (originMetaVariantCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_); } if (originMetaVariantCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_); } if (originMetaVariantCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_); } 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta)) { return super.equals(obj); } yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta other = (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta) obj; if (!getOriginMetaVariantCase().equals(other.getOriginMetaVariantCase())) return false; switch (originMetaVariantCase_) { case 1: if (!getCommon() .equals(other.getCommon())) return false; break; case 2: if (!getBucket() .equals(other.getBucket())) return false; break; case 3: if (!getWebsite() .equals(other.getWebsite())) return false; break; case 4: if (!getBalancer() .equals(other.getBalancer())) return false; break; case 0: default: } 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(); switch (originMetaVariantCase_) { case 1: hash = (37 * hash) + COMMON_FIELD_NUMBER; hash = (53 * hash) + getCommon().hashCode(); break; case 2: hash = (37 * hash) + BUCKET_FIELD_NUMBER; hash = (53 * hash) + getBucket().hashCode(); break; case 3: hash = (37 * hash) + WEBSITE_FIELD_NUMBER; hash = (53 * hash) + getWebsite().hashCode(); break; case 4: hash = (37 * hash) + BALANCER_FIELD_NUMBER; hash = (53 * hash) + getBalancer().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta 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(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta 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; } /** *
     * Origin type. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
     * 
* * Protobuf type {@code yandex.cloud.cdn.v1.OriginMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.cdn.v1.OriginMeta) yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.class, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.Builder.class); } // Construct using yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.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(); originMetaVariantCase_ = 0; originMetaVariant_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginMeta_descriptor; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta getDefaultInstanceForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta build() { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta buildPartial() { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta result = new yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta(this); if (originMetaVariantCase_ == 1) { if (commonBuilder_ == null) { result.originMetaVariant_ = originMetaVariant_; } else { result.originMetaVariant_ = commonBuilder_.build(); } } if (originMetaVariantCase_ == 2) { if (bucketBuilder_ == null) { result.originMetaVariant_ = originMetaVariant_; } else { result.originMetaVariant_ = bucketBuilder_.build(); } } if (originMetaVariantCase_ == 3) { if (websiteBuilder_ == null) { result.originMetaVariant_ = originMetaVariant_; } else { result.originMetaVariant_ = websiteBuilder_.build(); } } if (originMetaVariantCase_ == 4) { if (balancerBuilder_ == null) { result.originMetaVariant_ = originMetaVariant_; } else { result.originMetaVariant_ = balancerBuilder_.build(); } } result.originMetaVariantCase_ = originMetaVariantCase_; 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta) { return mergeFrom((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta other) { if (other == yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta.getDefaultInstance()) return this; switch (other.getOriginMetaVariantCase()) { case COMMON: { mergeCommon(other.getCommon()); break; } case BUCKET: { mergeBucket(other.getBucket()); break; } case WEBSITE: { mergeWebsite(other.getWebsite()); break; } case BALANCER: { mergeBalancer(other.getBalancer()); break; } case ORIGINMETAVARIANT_NOT_SET: { break; } } 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 { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int originMetaVariantCase_ = 0; private java.lang.Object originMetaVariant_; public OriginMetaVariantCase getOriginMetaVariantCase() { return OriginMetaVariantCase.forNumber( originMetaVariantCase_); } public Builder clearOriginMetaVariant() { originMetaVariantCase_ = 0; originMetaVariant_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder> commonBuilder_; /** *
       * A server with a domain name linked to it
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; * @return Whether the common field is set. */ @java.lang.Override public boolean hasCommon() { return originMetaVariantCase_ == 1; } /** *
       * A server with a domain name linked to it
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; * @return The common. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getCommon() { if (commonBuilder_ == null) { if (originMetaVariantCase_ == 1) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } else { if (originMetaVariantCase_ == 1) { return commonBuilder_.getMessage(); } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } } /** *
       * A server with a domain name linked to it
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; */ public Builder setCommon(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta value) { if (commonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originMetaVariant_ = value; onChanged(); } else { commonBuilder_.setMessage(value); } originMetaVariantCase_ = 1; return this; } /** *
       * A server with a domain name linked to it
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; */ public Builder setCommon( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder builderForValue) { if (commonBuilder_ == null) { originMetaVariant_ = builderForValue.build(); onChanged(); } else { commonBuilder_.setMessage(builderForValue.build()); } originMetaVariantCase_ = 1; return this; } /** *
       * A server with a domain name linked to it
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; */ public Builder mergeCommon(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta value) { if (commonBuilder_ == null) { if (originMetaVariantCase_ == 1 && originMetaVariant_ != yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance()) { originMetaVariant_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.newBuilder((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_) .mergeFrom(value).buildPartial(); } else { originMetaVariant_ = value; } onChanged(); } else { if (originMetaVariantCase_ == 1) { commonBuilder_.mergeFrom(value); } commonBuilder_.setMessage(value); } originMetaVariantCase_ = 1; return this; } /** *
       * A server with a domain name linked to it
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; */ public Builder clearCommon() { if (commonBuilder_ == null) { if (originMetaVariantCase_ == 1) { originMetaVariantCase_ = 0; originMetaVariant_ = null; onChanged(); } } else { if (originMetaVariantCase_ == 1) { originMetaVariantCase_ = 0; originMetaVariant_ = null; } commonBuilder_.clear(); } return this; } /** *
       * A server with a domain name linked to it
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder getCommonBuilder() { return getCommonFieldBuilder().getBuilder(); } /** *
       * A server with a domain name linked to it
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder getCommonOrBuilder() { if ((originMetaVariantCase_ == 1) && (commonBuilder_ != null)) { return commonBuilder_.getMessageOrBuilder(); } else { if (originMetaVariantCase_ == 1) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } } /** *
       * A server with a domain name linked to it
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder> getCommonFieldBuilder() { if (commonBuilder_ == null) { if (!(originMetaVariantCase_ == 1)) { originMetaVariant_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder>( (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_, getParentForChildren(), isClean()); originMetaVariant_ = null; } originMetaVariantCase_ = 1; onChanged();; return commonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder> bucketBuilder_; /** *
       * An Object Storage bucket not configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; * @return Whether the bucket field is set. */ @java.lang.Override public boolean hasBucket() { return originMetaVariantCase_ == 2; } /** *
       * An Object Storage bucket not configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; * @return The bucket. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getBucket() { if (bucketBuilder_ == null) { if (originMetaVariantCase_ == 2) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } else { if (originMetaVariantCase_ == 2) { return bucketBuilder_.getMessage(); } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } } /** *
       * An Object Storage bucket not configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; */ public Builder setBucket(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta value) { if (bucketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originMetaVariant_ = value; onChanged(); } else { bucketBuilder_.setMessage(value); } originMetaVariantCase_ = 2; return this; } /** *
       * An Object Storage bucket not configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; */ public Builder setBucket( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder builderForValue) { if (bucketBuilder_ == null) { originMetaVariant_ = builderForValue.build(); onChanged(); } else { bucketBuilder_.setMessage(builderForValue.build()); } originMetaVariantCase_ = 2; return this; } /** *
       * An Object Storage bucket not configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; */ public Builder mergeBucket(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta value) { if (bucketBuilder_ == null) { if (originMetaVariantCase_ == 2 && originMetaVariant_ != yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance()) { originMetaVariant_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.newBuilder((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_) .mergeFrom(value).buildPartial(); } else { originMetaVariant_ = value; } onChanged(); } else { if (originMetaVariantCase_ == 2) { bucketBuilder_.mergeFrom(value); } bucketBuilder_.setMessage(value); } originMetaVariantCase_ = 2; return this; } /** *
       * An Object Storage bucket not configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; */ public Builder clearBucket() { if (bucketBuilder_ == null) { if (originMetaVariantCase_ == 2) { originMetaVariantCase_ = 0; originMetaVariant_ = null; onChanged(); } } else { if (originMetaVariantCase_ == 2) { originMetaVariantCase_ = 0; originMetaVariant_ = null; } bucketBuilder_.clear(); } return this; } /** *
       * An Object Storage bucket not configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder getBucketBuilder() { return getBucketFieldBuilder().getBuilder(); } /** *
       * An Object Storage bucket not configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder getBucketOrBuilder() { if ((originMetaVariantCase_ == 2) && (bucketBuilder_ != null)) { return bucketBuilder_.getMessageOrBuilder(); } else { if (originMetaVariantCase_ == 2) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } } /** *
       * An Object Storage bucket not configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta bucket = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder> getBucketFieldBuilder() { if (bucketBuilder_ == null) { if (!(originMetaVariantCase_ == 2)) { originMetaVariant_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder>( (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_, getParentForChildren(), isClean()); originMetaVariant_ = null; } originMetaVariantCase_ = 2; onChanged();; return bucketBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder> websiteBuilder_; /** *
       * An Object Storage bucket configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; * @return Whether the website field is set. */ @java.lang.Override public boolean hasWebsite() { return originMetaVariantCase_ == 3; } /** *
       * An Object Storage bucket configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; * @return The website. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getWebsite() { if (websiteBuilder_ == null) { if (originMetaVariantCase_ == 3) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } else { if (originMetaVariantCase_ == 3) { return websiteBuilder_.getMessage(); } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } } /** *
       * An Object Storage bucket configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; */ public Builder setWebsite(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta value) { if (websiteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originMetaVariant_ = value; onChanged(); } else { websiteBuilder_.setMessage(value); } originMetaVariantCase_ = 3; return this; } /** *
       * An Object Storage bucket configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; */ public Builder setWebsite( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder builderForValue) { if (websiteBuilder_ == null) { originMetaVariant_ = builderForValue.build(); onChanged(); } else { websiteBuilder_.setMessage(builderForValue.build()); } originMetaVariantCase_ = 3; return this; } /** *
       * An Object Storage bucket configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; */ public Builder mergeWebsite(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta value) { if (websiteBuilder_ == null) { if (originMetaVariantCase_ == 3 && originMetaVariant_ != yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance()) { originMetaVariant_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.newBuilder((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_) .mergeFrom(value).buildPartial(); } else { originMetaVariant_ = value; } onChanged(); } else { if (originMetaVariantCase_ == 3) { websiteBuilder_.mergeFrom(value); } websiteBuilder_.setMessage(value); } originMetaVariantCase_ = 3; return this; } /** *
       * An Object Storage bucket configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; */ public Builder clearWebsite() { if (websiteBuilder_ == null) { if (originMetaVariantCase_ == 3) { originMetaVariantCase_ = 0; originMetaVariant_ = null; onChanged(); } } else { if (originMetaVariantCase_ == 3) { originMetaVariantCase_ = 0; originMetaVariant_ = null; } websiteBuilder_.clear(); } return this; } /** *
       * An Object Storage bucket configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder getWebsiteBuilder() { return getWebsiteFieldBuilder().getBuilder(); } /** *
       * An Object Storage bucket configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder getWebsiteOrBuilder() { if ((originMetaVariantCase_ == 3) && (websiteBuilder_ != null)) { return websiteBuilder_.getMessageOrBuilder(); } else { if (originMetaVariantCase_ == 3) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } } /** *
       * An Object Storage bucket configured as a static site hosting.
       * 
* * .yandex.cloud.cdn.v1.OriginNamedMeta website = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder> getWebsiteFieldBuilder() { if (websiteBuilder_ == null) { if (!(originMetaVariantCase_ == 3)) { originMetaVariant_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } websiteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder>( (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) originMetaVariant_, getParentForChildren(), isClean()); originMetaVariant_ = null; } originMetaVariantCase_ = 3; onChanged();; return websiteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMetaOrBuilder> balancerBuilder_; /** *
       * An L7 load balancer from Application Load Balancer.
       * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
       * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; * @return Whether the balancer field is set. */ @java.lang.Override public boolean hasBalancer() { return originMetaVariantCase_ == 4; } /** *
       * An L7 load balancer from Application Load Balancer.
       * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
       * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; * @return The balancer. */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta getBalancer() { if (balancerBuilder_ == null) { if (originMetaVariantCase_ == 4) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.getDefaultInstance(); } else { if (originMetaVariantCase_ == 4) { return balancerBuilder_.getMessage(); } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.getDefaultInstance(); } } /** *
       * An L7 load balancer from Application Load Balancer.
       * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
       * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; */ public Builder setBalancer(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta value) { if (balancerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originMetaVariant_ = value; onChanged(); } else { balancerBuilder_.setMessage(value); } originMetaVariantCase_ = 4; return this; } /** *
       * An L7 load balancer from Application Load Balancer.
       * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
       * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; */ public Builder setBalancer( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.Builder builderForValue) { if (balancerBuilder_ == null) { originMetaVariant_ = builderForValue.build(); onChanged(); } else { balancerBuilder_.setMessage(builderForValue.build()); } originMetaVariantCase_ = 4; return this; } /** *
       * An L7 load balancer from Application Load Balancer.
       * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
       * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; */ public Builder mergeBalancer(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta value) { if (balancerBuilder_ == null) { if (originMetaVariantCase_ == 4 && originMetaVariant_ != yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.getDefaultInstance()) { originMetaVariant_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.newBuilder((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_) .mergeFrom(value).buildPartial(); } else { originMetaVariant_ = value; } onChanged(); } else { if (originMetaVariantCase_ == 4) { balancerBuilder_.mergeFrom(value); } balancerBuilder_.setMessage(value); } originMetaVariantCase_ = 4; return this; } /** *
       * An L7 load balancer from Application Load Balancer.
       * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
       * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; */ public Builder clearBalancer() { if (balancerBuilder_ == null) { if (originMetaVariantCase_ == 4) { originMetaVariantCase_ = 0; originMetaVariant_ = null; onChanged(); } } else { if (originMetaVariantCase_ == 4) { originMetaVariantCase_ = 0; originMetaVariant_ = null; } balancerBuilder_.clear(); } return this; } /** *
       * An L7 load balancer from Application Load Balancer.
       * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
       * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; */ public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.Builder getBalancerBuilder() { return getBalancerFieldBuilder().getBuilder(); } /** *
       * An L7 load balancer from Application Load Balancer.
       * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
       * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; */ @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMetaOrBuilder getBalancerOrBuilder() { if ((originMetaVariantCase_ == 4) && (balancerBuilder_ != null)) { return balancerBuilder_.getMessageOrBuilder(); } else { if (originMetaVariantCase_ == 4) { return (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_; } return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.getDefaultInstance(); } } /** *
       * An L7 load balancer from Application Load Balancer.
       * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
       * 
* * .yandex.cloud.cdn.v1.OriginBalancerMeta balancer = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMetaOrBuilder> getBalancerFieldBuilder() { if (balancerBuilder_ == null) { if (!(originMetaVariantCase_ == 4)) { originMetaVariant_ = yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.getDefaultInstance(); } balancerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.Builder, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMetaOrBuilder>( (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) originMetaVariant_, getParentForChildren(), isClean()); originMetaVariant_ = null; } originMetaVariantCase_ = 4; onChanged();; return balancerBuilder_; } @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:yandex.cloud.cdn.v1.OriginMeta) } // @@protoc_insertion_point(class_scope:yandex.cloud.cdn.v1.OriginMeta) private static final yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta(); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OriginMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OriginMeta(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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OriginNamedMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.cdn.v1.OriginNamedMeta) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the origin.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the origin.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** *
   * Origin info. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
   * 
* * Protobuf type {@code yandex.cloud.cdn.v1.OriginNamedMeta} */ public static final class OriginNamedMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.cdn.v1.OriginNamedMeta) OriginNamedMetaOrBuilder { private static final long serialVersionUID = 0L; // Use OriginNamedMeta.newBuilder() to construct. private OriginNamedMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OriginNamedMeta() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OriginNamedMeta(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OriginNamedMeta( 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(); name_ = 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 yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.class, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the origin.
     * 
* * string name = 1; * @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; } } /** *
     * Name of the origin.
     * 
* * string name = 1; * @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; } } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta)) { return super.equals(obj); } yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta other = (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) obj; if (!getName() .equals(other.getName())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta 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(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta 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; } /** *
     * Origin info. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
     * 
* * Protobuf type {@code yandex.cloud.cdn.v1.OriginNamedMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.cdn.v1.OriginNamedMeta) yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.class, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.Builder.class); } // Construct using yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.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(); name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_descriptor; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getDefaultInstanceForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta build() { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta buildPartial() { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta result = new yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta(this); result.name_ = name_; 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) { return mergeFrom((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta other) { if (other == yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; 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 { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name of the origin.
       * 
* * string name = 1; * @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; } } /** *
       * Name of the origin.
       * 
* * string name = 1; * @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; } } /** *
       * Name of the origin.
       * 
* * string name = 1; * @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; } /** *
       * Name of the origin.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the origin.
       * 
* * string name = 1; * @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; } @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:yandex.cloud.cdn.v1.OriginNamedMeta) } // @@protoc_insertion_point(class_scope:yandex.cloud.cdn.v1.OriginNamedMeta) private static final yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta(); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OriginNamedMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OriginNamedMeta(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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginNamedMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OriginBalancerMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.cdn.v1.OriginBalancerMeta) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the origin.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the origin.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); } /** *
   * Application Load Balancer origin info. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
   * 
* * Protobuf type {@code yandex.cloud.cdn.v1.OriginBalancerMeta} */ public static final class OriginBalancerMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.cdn.v1.OriginBalancerMeta) OriginBalancerMetaOrBuilder { private static final long serialVersionUID = 0L; // Use OriginBalancerMeta.newBuilder() to construct. private OriginBalancerMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OriginBalancerMeta() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OriginBalancerMeta(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OriginBalancerMeta( 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(); id_ = 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 yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.class, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the origin.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * ID of the origin.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta)) { return super.equals(obj); } yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta other = (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) obj; if (!getId() .equals(other.getId())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta 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(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta 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; } /** *
     * Application Load Balancer origin info. For details about the concept, see [documentation](/docs/cdn/concepts/origins).
     * 
* * Protobuf type {@code yandex.cloud.cdn.v1.OriginBalancerMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.cdn.v1.OriginBalancerMeta) yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.class, yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.Builder.class); } // Construct using yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.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(); id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_descriptor; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta getDefaultInstanceForType() { return yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta build() { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta buildPartial() { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta result = new yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta(this); result.id_ = id_; 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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) { return mergeFrom((yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta other) { if (other == yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; 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 { yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * ID of the origin.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the origin.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the origin.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the origin.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the origin.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = 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:yandex.cloud.cdn.v1.OriginBalancerMeta) } // @@protoc_insertion_point(class_scope:yandex.cloud.cdn.v1.OriginBalancerMeta) private static final yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta(); } public static yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OriginBalancerMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OriginBalancerMeta(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 yandex.cloud.api.cdn.v1.OriginOuterClass.OriginBalancerMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_cdn_v1_Origin_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_cdn_v1_Origin_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_cdn_v1_OriginParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_cdn_v1_OriginParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_cdn_v1_OriginMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_cdn_v1_OriginMeta_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n yandex/cloud/cdn/v1/origin.proto\022\023yand" + "ex.cloud.cdn.v1\"\215\001\n\006Origin\022\n\n\002id\030\001 \001(\003\022\027" + "\n\017origin_group_id\030\002 \001(\003\022\016\n\006source\030\003 \001(\t\022" + "\017\n\007enabled\030\004 \001(\010\022\016\n\006backup\030\005 \001(\010\022-\n\004meta" + "\030\006 \001(\0132\037.yandex.cloud.cdn.v1.OriginMeta\"" + "n\n\014OriginParams\022\016\n\006source\030\001 \001(\t\022\017\n\007enabl" + "ed\030\002 \001(\010\022\016\n\006backup\030\003 \001(\010\022-\n\004meta\030\004 \001(\0132\037" + ".yandex.cloud.cdn.v1.OriginMeta\"\211\002\n\nOrig" + "inMeta\0226\n\006common\030\001 \001(\0132$.yandex.cloud.cd" + "n.v1.OriginNamedMetaH\000\0226\n\006bucket\030\002 \001(\0132$" + ".yandex.cloud.cdn.v1.OriginNamedMetaH\000\0227" + "\n\007website\030\003 \001(\0132$.yandex.cloud.cdn.v1.Or" + "iginNamedMetaH\000\022;\n\010balancer\030\004 \001(\0132\'.yand" + "ex.cloud.cdn.v1.OriginBalancerMetaH\000B\025\n\023" + "origin_meta_variant\"\037\n\017OriginNamedMeta\022\014" + "\n\004name\030\001 \001(\t\" \n\022OriginBalancerMeta\022\n\n\002id" + "\030\001 \001(\tBV\n\027yandex.cloud.api.cdn.v1Z;githu" + "b.com/yandex-cloud/go-genproto/yandex/cl" + "oud/cdn/v1;cdnb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_yandex_cloud_cdn_v1_Origin_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_cdn_v1_Origin_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_cdn_v1_Origin_descriptor, new java.lang.String[] { "Id", "OriginGroupId", "Source", "Enabled", "Backup", "Meta", }); internal_static_yandex_cloud_cdn_v1_OriginParams_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_cdn_v1_OriginParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_cdn_v1_OriginParams_descriptor, new java.lang.String[] { "Source", "Enabled", "Backup", "Meta", }); internal_static_yandex_cloud_cdn_v1_OriginMeta_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_cdn_v1_OriginMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_cdn_v1_OriginMeta_descriptor, new java.lang.String[] { "Common", "Bucket", "Website", "Balancer", "OriginMetaVariant", }); internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_cdn_v1_OriginNamedMeta_descriptor, new java.lang.String[] { "Name", }); internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_cdn_v1_OriginBalancerMeta_descriptor, new java.lang.String[] { "Id", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy