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

yandex.cloud.api.storage.v1.BucketOuterClass Maven / Gradle / Ivy

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

package yandex.cloud.api.storage.v1;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code yandex.cloud.storage.v1.Versioning}
   */
  public enum Versioning
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * VERSIONING_UNSPECIFIED = 0;
     */
    VERSIONING_UNSPECIFIED(0),
    /**
     * 
     * The bucket is unversioned, i.e. versioning has never been enabled for the bucket, including at its creation.
     * Objects that are stored in the bucket have a version ID of `null`.
     * To enable versioning, change status to `VERSIONING_ENABLED` via a [BucketService.Update] request. Note that this
     * action is irreversible, and a bucket with versioning enabled can never return to `VERSIONING_DISABLED` state.
     * 
* * VERSIONING_DISABLED = 1; */ VERSIONING_DISABLED(1), /** *
     * Bucket versioning is enabled, i.e. all new objects are versioned and given a unique version ID, and objects that
     * already existed at the time versioning was enabled will be versioned and given a unique version ID when modified
     * by future requests.
     * To suspend versioning, change status to `VERSIONING_SUSPENDED` via a [BucketService.Update] request. You cannot
     * disable versioning altogether for a bucket that already had it enabled; objects that had version IDs will keep
     * them.
     * 
* * VERSIONING_ENABLED = 2; */ VERSIONING_ENABLED(2), /** *
     * Bucket versioning is suspended, i.e. new objects are not versioned, but objects that already existed at the time
     * versioning was suspended are still versioned and keep their version IDs.
     * To resume versioning, change status to `VERSIONING_ENABLED` via a [BucketService.Update] request.
     * 
* * VERSIONING_SUSPENDED = 3; */ VERSIONING_SUSPENDED(3), UNRECOGNIZED(-1), ; /** * VERSIONING_UNSPECIFIED = 0; */ public static final int VERSIONING_UNSPECIFIED_VALUE = 0; /** *
     * The bucket is unversioned, i.e. versioning has never been enabled for the bucket, including at its creation.
     * Objects that are stored in the bucket have a version ID of `null`.
     * To enable versioning, change status to `VERSIONING_ENABLED` via a [BucketService.Update] request. Note that this
     * action is irreversible, and a bucket with versioning enabled can never return to `VERSIONING_DISABLED` state.
     * 
* * VERSIONING_DISABLED = 1; */ public static final int VERSIONING_DISABLED_VALUE = 1; /** *
     * Bucket versioning is enabled, i.e. all new objects are versioned and given a unique version ID, and objects that
     * already existed at the time versioning was enabled will be versioned and given a unique version ID when modified
     * by future requests.
     * To suspend versioning, change status to `VERSIONING_SUSPENDED` via a [BucketService.Update] request. You cannot
     * disable versioning altogether for a bucket that already had it enabled; objects that had version IDs will keep
     * them.
     * 
* * VERSIONING_ENABLED = 2; */ public static final int VERSIONING_ENABLED_VALUE = 2; /** *
     * Bucket versioning is suspended, i.e. new objects are not versioned, but objects that already existed at the time
     * versioning was suspended are still versioned and keep their version IDs.
     * To resume versioning, change status to `VERSIONING_ENABLED` via a [BucketService.Update] request.
     * 
* * VERSIONING_SUSPENDED = 3; */ public static final int VERSIONING_SUSPENDED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Versioning valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Versioning forNumber(int value) { switch (value) { case 0: return VERSIONING_UNSPECIFIED; case 1: return VERSIONING_DISABLED; case 2: return VERSIONING_ENABLED; case 3: return VERSIONING_SUSPENDED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Versioning> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Versioning findValueByNumber(int number) { return Versioning.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.getDescriptor().getEnumTypes().get(0); } private static final Versioning[] VALUES = values(); public static Versioning valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Versioning(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.storage.v1.Versioning) } public interface BucketOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.Bucket) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the bucket. Always equal to [name], which has priority.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the bucket. Always equal to [name], which has priority.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Name of the bucket.
     * The name is unique within the platform. For naming limitations and rules, see
     * [documentation](/docs/storage/concepts/bucket#naming).
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the bucket.
     * The name is unique within the platform. For naming limitations and rules, see
     * [documentation](/docs/storage/concepts/bucket#naming).
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * ID of the folder that the bucket belongs to.
     * 
* * string folder_id = 3; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the bucket belongs to.
     * 
* * string folder_id = 3; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; * @return Whether the anonymousAccessFlags field is set. */ boolean hasAnonymousAccessFlags(); /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; * @return The anonymousAccessFlags. */ yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags getAnonymousAccessFlags(); /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; */ yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder getAnonymousAccessFlagsOrBuilder(); /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string default_storage_class = 5; * @return The defaultStorageClass. */ java.lang.String getDefaultStorageClass(); /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string default_storage_class = 5; * @return The bytes for defaultStorageClass. */ com.google.protobuf.ByteString getDefaultStorageClassBytes(); /** *
     * Bucket versioning status.
     * For details, see [documentation](/docs/storage/concepts/versioning).
     * 
* * .yandex.cloud.storage.v1.Versioning versioning = 6; * @return The enum numeric value on the wire for versioning. */ int getVersioningValue(); /** *
     * Bucket versioning status.
     * For details, see [documentation](/docs/storage/concepts/versioning).
     * 
* * .yandex.cloud.storage.v1.Versioning versioning = 6; * @return The versioning. */ yandex.cloud.api.storage.v1.BucketOuterClass.Versioning getVersioning(); /** *
     * Maximum size of the bucket, in bytes.
     * For details, see [documentation](/docs/storage/operations/buckets/limit-max-volume).
     * 
* * int64 max_size = 7; * @return The maxSize. */ long getMaxSize(); /** *
     * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
     * For details, see [documentation](/docs/storage/concepts/policy).
     * 
* * .google.protobuf.Struct policy = 8; * @return Whether the policy field is set. */ boolean hasPolicy(); /** *
     * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
     * For details, see [documentation](/docs/storage/concepts/policy).
     * 
* * .google.protobuf.Struct policy = 8; * @return The policy. */ com.google.protobuf.Struct getPolicy(); /** *
     * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
     * For details, see [documentation](/docs/storage/concepts/policy).
     * 
* * .google.protobuf.Struct policy = 8; */ com.google.protobuf.StructOrBuilder getPolicyOrBuilder(); /** *
     * Access control list (ACL) of the bucket.
     * For details, see [documentation](/docs/storage/concepts/acl).
     * 
* * .yandex.cloud.storage.v1.ACL acl = 9; * @return Whether the acl field is set. */ boolean hasAcl(); /** *
     * Access control list (ACL) of the bucket.
     * For details, see [documentation](/docs/storage/concepts/acl).
     * 
* * .yandex.cloud.storage.v1.ACL acl = 9; * @return The acl. */ yandex.cloud.api.storage.v1.BucketOuterClass.ACL getAcl(); /** *
     * Access control list (ACL) of the bucket.
     * For details, see [documentation](/docs/storage/concepts/acl).
     * 
* * .yandex.cloud.storage.v1.ACL acl = 9; */ yandex.cloud.api.storage.v1.BucketOuterClass.ACLOrBuilder getAclOrBuilder(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 10; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 10; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 10; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ java.util.List getCorsList(); /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule getCors(int index); /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ int getCorsCount(); /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ java.util.List getCorsOrBuilderList(); /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ yandex.cloud.api.storage.v1.BucketOuterClass.CorsRuleOrBuilder getCorsOrBuilder( int index); /** *
     * Configuration for hosting a static website in the bucket.
     * For details, see [documentation](/docs/storage/concepts/hosting).
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; * @return Whether the websiteSettings field is set. */ boolean hasWebsiteSettings(); /** *
     * Configuration for hosting a static website in the bucket.
     * For details, see [documentation](/docs/storage/concepts/hosting).
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; * @return The websiteSettings. */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings getWebsiteSettings(); /** *
     * Configuration for hosting a static website in the bucket.
     * For details, see [documentation](/docs/storage/concepts/hosting).
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettingsOrBuilder getWebsiteSettingsOrBuilder(); /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ java.util.List getLifecycleRulesList(); /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule getLifecycleRules(int index); /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ int getLifecycleRulesCount(); /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ java.util.List getLifecycleRulesOrBuilderList(); /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRuleOrBuilder getLifecycleRulesOrBuilder( int index); /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ java.util.List getTagsList(); /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ yandex.cloud.api.storage.v1.BucketOuterClass.Tag getTags(int index); /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ int getTagsCount(); /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ java.util.List getTagsOrBuilderList(); /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ yandex.cloud.api.storage.v1.BucketOuterClass.TagOrBuilder getTagsOrBuilder( int index); /** *
     * Configuration for object lock on the bucket.
     * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
     * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; * @return Whether the objectLock field is set. */ boolean hasObjectLock(); /** *
     * Configuration for object lock on the bucket.
     * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
     * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; * @return The objectLock. */ yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock getObjectLock(); /** *
     * Configuration for object lock on the bucket.
     * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
     * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; */ yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLockOrBuilder getObjectLockOrBuilder(); /** *
     * Configuration for bucket's encryption
     * For detauls, see [documentation](/docs/storage/concepts/encryption)
     * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; * @return Whether the encryption field is set. */ boolean hasEncryption(); /** *
     * Configuration for bucket's encryption
     * For detauls, see [documentation](/docs/storage/concepts/encryption)
     * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; * @return The encryption. */ yandex.cloud.api.storage.v1.BucketOuterClass.Encryption getEncryption(); /** *
     * Configuration for bucket's encryption
     * For detauls, see [documentation](/docs/storage/concepts/encryption)
     * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; */ yandex.cloud.api.storage.v1.BucketOuterClass.EncryptionOrBuilder getEncryptionOrBuilder(); } /** *
   * A bucket resource.
   * For details about the concept, see [documentation](/docs/storage/concepts/bucket).
   * 
* * Protobuf type {@code yandex.cloud.storage.v1.Bucket} */ public static final class Bucket extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.Bucket) BucketOrBuilder { private static final long serialVersionUID = 0L; // Use Bucket.newBuilder() to construct. private Bucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Bucket() { id_ = ""; name_ = ""; folderId_ = ""; defaultStorageClass_ = ""; versioning_ = 0; cors_ = java.util.Collections.emptyList(); lifecycleRules_ = java.util.Collections.emptyList(); tags_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Bucket(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Bucket( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 34: { yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder subBuilder = null; if (anonymousAccessFlags_ != null) { subBuilder = anonymousAccessFlags_.toBuilder(); } anonymousAccessFlags_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(anonymousAccessFlags_); anonymousAccessFlags_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); defaultStorageClass_ = s; break; } case 48: { int rawValue = input.readEnum(); versioning_ = rawValue; break; } case 56: { maxSize_ = input.readInt64(); break; } case 66: { com.google.protobuf.Struct.Builder subBuilder = null; if (policy_ != null) { subBuilder = policy_.toBuilder(); } policy_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(policy_); policy_ = subBuilder.buildPartial(); } break; } case 74: { yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Builder subBuilder = null; if (acl_ != null) { subBuilder = acl_.toBuilder(); } acl_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.ACL.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(acl_); acl_ = subBuilder.buildPartial(); } break; } case 82: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 90: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { cors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } cors_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.parser(), extensionRegistry)); break; } case 98: { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Builder subBuilder = null; if (websiteSettings_ != null) { subBuilder = websiteSettings_.toBuilder(); } websiteSettings_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(websiteSettings_); websiteSettings_ = subBuilder.buildPartial(); } break; } case 106: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { lifecycleRules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } lifecycleRules_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.parser(), extensionRegistry)); break; } case 114: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { tags_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } tags_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.Tag.parser(), extensionRegistry)); break; } case 122: { yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.Builder subBuilder = null; if (objectLock_ != null) { subBuilder = objectLock_.toBuilder(); } objectLock_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objectLock_); objectLock_ = subBuilder.buildPartial(); } break; } case 130: { yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.Builder subBuilder = null; if (encryption_ != null) { subBuilder = encryption_.toBuilder(); } encryption_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(encryption_); encryption_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { cors_ = java.util.Collections.unmodifiableList(cors_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { lifecycleRules_ = java.util.Collections.unmodifiableList(lifecycleRules_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { tags_ = java.util.Collections.unmodifiableList(tags_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Bucket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Bucket_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Bucket.class, yandex.cloud.api.storage.v1.BucketOuterClass.Bucket.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the bucket. Always equal to [name], which has priority.
     * 
* * 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 bucket. Always equal to [name], which has priority.
     * 
* * 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; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the bucket.
     * The name is unique within the platform. For naming limitations and rules, see
     * [documentation](/docs/storage/concepts/bucket#naming).
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the bucket.
     * The name is unique within the platform. For naming limitations and rules, see
     * [documentation](/docs/storage/concepts/bucket#naming).
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 3; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the bucket belongs to.
     * 
* * string folder_id = 3; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; 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(); folderId_ = s; return s; } } /** *
     * ID of the folder that the bucket belongs to.
     * 
* * string folder_id = 3; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ANONYMOUS_ACCESS_FLAGS_FIELD_NUMBER = 4; private yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags anonymousAccessFlags_; /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; * @return Whether the anonymousAccessFlags field is set. */ @java.lang.Override public boolean hasAnonymousAccessFlags() { return anonymousAccessFlags_ != null; } /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; * @return The anonymousAccessFlags. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags getAnonymousAccessFlags() { return anonymousAccessFlags_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.getDefaultInstance() : anonymousAccessFlags_; } /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder getAnonymousAccessFlagsOrBuilder() { return getAnonymousAccessFlags(); } public static final int DEFAULT_STORAGE_CLASS_FIELD_NUMBER = 5; private volatile java.lang.Object defaultStorageClass_; /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string default_storage_class = 5; * @return The defaultStorageClass. */ @java.lang.Override public java.lang.String getDefaultStorageClass() { java.lang.Object ref = defaultStorageClass_; 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(); defaultStorageClass_ = s; return s; } } /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string default_storage_class = 5; * @return The bytes for defaultStorageClass. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultStorageClassBytes() { java.lang.Object ref = defaultStorageClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultStorageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSIONING_FIELD_NUMBER = 6; private int versioning_; /** *
     * Bucket versioning status.
     * For details, see [documentation](/docs/storage/concepts/versioning).
     * 
* * .yandex.cloud.storage.v1.Versioning versioning = 6; * @return The enum numeric value on the wire for versioning. */ @java.lang.Override public int getVersioningValue() { return versioning_; } /** *
     * Bucket versioning status.
     * For details, see [documentation](/docs/storage/concepts/versioning).
     * 
* * .yandex.cloud.storage.v1.Versioning versioning = 6; * @return The versioning. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Versioning getVersioning() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.Versioning result = yandex.cloud.api.storage.v1.BucketOuterClass.Versioning.valueOf(versioning_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.Versioning.UNRECOGNIZED : result; } public static final int MAX_SIZE_FIELD_NUMBER = 7; private long maxSize_; /** *
     * Maximum size of the bucket, in bytes.
     * For details, see [documentation](/docs/storage/operations/buckets/limit-max-volume).
     * 
* * int64 max_size = 7; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } public static final int POLICY_FIELD_NUMBER = 8; private com.google.protobuf.Struct policy_; /** *
     * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
     * For details, see [documentation](/docs/storage/concepts/policy).
     * 
* * .google.protobuf.Struct policy = 8; * @return Whether the policy field is set. */ @java.lang.Override public boolean hasPolicy() { return policy_ != null; } /** *
     * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
     * For details, see [documentation](/docs/storage/concepts/policy).
     * 
* * .google.protobuf.Struct policy = 8; * @return The policy. */ @java.lang.Override public com.google.protobuf.Struct getPolicy() { return policy_ == null ? com.google.protobuf.Struct.getDefaultInstance() : policy_; } /** *
     * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
     * For details, see [documentation](/docs/storage/concepts/policy).
     * 
* * .google.protobuf.Struct policy = 8; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPolicyOrBuilder() { return getPolicy(); } public static final int ACL_FIELD_NUMBER = 9; private yandex.cloud.api.storage.v1.BucketOuterClass.ACL acl_; /** *
     * Access control list (ACL) of the bucket.
     * For details, see [documentation](/docs/storage/concepts/acl).
     * 
* * .yandex.cloud.storage.v1.ACL acl = 9; * @return Whether the acl field is set. */ @java.lang.Override public boolean hasAcl() { return acl_ != null; } /** *
     * Access control list (ACL) of the bucket.
     * For details, see [documentation](/docs/storage/concepts/acl).
     * 
* * .yandex.cloud.storage.v1.ACL acl = 9; * @return The acl. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL getAcl() { return acl_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ACL.getDefaultInstance() : acl_; } /** *
     * Access control list (ACL) of the bucket.
     * For details, see [documentation](/docs/storage/concepts/acl).
     * 
* * .yandex.cloud.storage.v1.ACL acl = 9; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACLOrBuilder getAclOrBuilder() { return getAcl(); } public static final int CREATED_AT_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 10; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 10; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 10; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int CORS_FIELD_NUMBER = 11; private java.util.List cors_; /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ @java.lang.Override public java.util.List getCorsList() { return cors_; } /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ @java.lang.Override public java.util.List getCorsOrBuilderList() { return cors_; } /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ @java.lang.Override public int getCorsCount() { return cors_.size(); } /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule getCors(int index) { return cors_.get(index); } /** *
     * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
     * For details, see [documentation](/docs/storage/concepts/cors).
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRuleOrBuilder getCorsOrBuilder( int index) { return cors_.get(index); } public static final int WEBSITE_SETTINGS_FIELD_NUMBER = 12; private yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings websiteSettings_; /** *
     * Configuration for hosting a static website in the bucket.
     * For details, see [documentation](/docs/storage/concepts/hosting).
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; * @return Whether the websiteSettings field is set. */ @java.lang.Override public boolean hasWebsiteSettings() { return websiteSettings_ != null; } /** *
     * Configuration for hosting a static website in the bucket.
     * For details, see [documentation](/docs/storage/concepts/hosting).
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; * @return The websiteSettings. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings getWebsiteSettings() { return websiteSettings_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.getDefaultInstance() : websiteSettings_; } /** *
     * Configuration for hosting a static website in the bucket.
     * For details, see [documentation](/docs/storage/concepts/hosting).
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettingsOrBuilder getWebsiteSettingsOrBuilder() { return getWebsiteSettings(); } public static final int LIFECYCLE_RULES_FIELD_NUMBER = 13; private java.util.List lifecycleRules_; /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ @java.lang.Override public java.util.List getLifecycleRulesList() { return lifecycleRules_; } /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ @java.lang.Override public java.util.List getLifecycleRulesOrBuilderList() { return lifecycleRules_; } /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ @java.lang.Override public int getLifecycleRulesCount() { return lifecycleRules_.size(); } /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule getLifecycleRules(int index) { return lifecycleRules_.get(index); } /** *
     * List of object lifecycle rules for the bucket.
     * For details, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRuleOrBuilder getLifecycleRulesOrBuilder( int index) { return lifecycleRules_.get(index); } public static final int TAGS_FIELD_NUMBER = 14; private java.util.List tags_; /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ @java.lang.Override public java.util.List getTagsList() { return tags_; } /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ @java.lang.Override public java.util.List getTagsOrBuilderList() { return tags_; } /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ @java.lang.Override public int getTagsCount() { return tags_.size(); } /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Tag getTags(int index) { return tags_.get(index); } /** *
     * List of tags for the bucket.
     * For details, see [documentation](/docs/resource-manager/concepts/labels).
     * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.TagOrBuilder getTagsOrBuilder( int index) { return tags_.get(index); } public static final int OBJECT_LOCK_FIELD_NUMBER = 15; private yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock objectLock_; /** *
     * Configuration for object lock on the bucket.
     * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
     * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; * @return Whether the objectLock field is set. */ @java.lang.Override public boolean hasObjectLock() { return objectLock_ != null; } /** *
     * Configuration for object lock on the bucket.
     * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
     * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; * @return The objectLock. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock getObjectLock() { return objectLock_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.getDefaultInstance() : objectLock_; } /** *
     * Configuration for object lock on the bucket.
     * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
     * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLockOrBuilder getObjectLockOrBuilder() { return getObjectLock(); } public static final int ENCRYPTION_FIELD_NUMBER = 16; private yandex.cloud.api.storage.v1.BucketOuterClass.Encryption encryption_; /** *
     * Configuration for bucket's encryption
     * For detauls, see [documentation](/docs/storage/concepts/encryption)
     * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; * @return Whether the encryption field is set. */ @java.lang.Override public boolean hasEncryption() { return encryption_ != null; } /** *
     * Configuration for bucket's encryption
     * For detauls, see [documentation](/docs/storage/concepts/encryption)
     * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; * @return The encryption. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption getEncryption() { return encryption_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.getDefaultInstance() : encryption_; } /** *
     * Configuration for bucket's encryption
     * For detauls, see [documentation](/docs/storage/concepts/encryption)
     * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.EncryptionOrBuilder getEncryptionOrBuilder() { return getEncryption(); } 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, folderId_); } if (anonymousAccessFlags_ != null) { output.writeMessage(4, getAnonymousAccessFlags()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultStorageClass_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, defaultStorageClass_); } if (versioning_ != yandex.cloud.api.storage.v1.BucketOuterClass.Versioning.VERSIONING_UNSPECIFIED.getNumber()) { output.writeEnum(6, versioning_); } if (maxSize_ != 0L) { output.writeInt64(7, maxSize_); } if (policy_ != null) { output.writeMessage(8, getPolicy()); } if (acl_ != null) { output.writeMessage(9, getAcl()); } if (createdAt_ != null) { output.writeMessage(10, getCreatedAt()); } for (int i = 0; i < cors_.size(); i++) { output.writeMessage(11, cors_.get(i)); } if (websiteSettings_ != null) { output.writeMessage(12, getWebsiteSettings()); } for (int i = 0; i < lifecycleRules_.size(); i++) { output.writeMessage(13, lifecycleRules_.get(i)); } for (int i = 0; i < tags_.size(); i++) { output.writeMessage(14, tags_.get(i)); } if (objectLock_ != null) { output.writeMessage(15, getObjectLock()); } if (encryption_ != null) { output.writeMessage(16, getEncryption()); } 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, folderId_); } if (anonymousAccessFlags_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAnonymousAccessFlags()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultStorageClass_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, defaultStorageClass_); } if (versioning_ != yandex.cloud.api.storage.v1.BucketOuterClass.Versioning.VERSIONING_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, versioning_); } if (maxSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, maxSize_); } if (policy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getPolicy()); } if (acl_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getAcl()); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getCreatedAt()); } for (int i = 0; i < cors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, cors_.get(i)); } if (websiteSettings_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getWebsiteSettings()); } for (int i = 0; i < lifecycleRules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, lifecycleRules_.get(i)); } for (int i = 0; i < tags_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, tags_.get(i)); } if (objectLock_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getObjectLock()); } if (encryption_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getEncryption()); } 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.storage.v1.BucketOuterClass.Bucket)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.Bucket other = (yandex.cloud.api.storage.v1.BucketOuterClass.Bucket) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (hasAnonymousAccessFlags() != other.hasAnonymousAccessFlags()) return false; if (hasAnonymousAccessFlags()) { if (!getAnonymousAccessFlags() .equals(other.getAnonymousAccessFlags())) return false; } if (!getDefaultStorageClass() .equals(other.getDefaultStorageClass())) return false; if (versioning_ != other.versioning_) return false; if (getMaxSize() != other.getMaxSize()) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { if (!getPolicy() .equals(other.getPolicy())) return false; } if (hasAcl() != other.hasAcl()) return false; if (hasAcl()) { if (!getAcl() .equals(other.getAcl())) return false; } if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getCorsList() .equals(other.getCorsList())) return false; if (hasWebsiteSettings() != other.hasWebsiteSettings()) return false; if (hasWebsiteSettings()) { if (!getWebsiteSettings() .equals(other.getWebsiteSettings())) return false; } if (!getLifecycleRulesList() .equals(other.getLifecycleRulesList())) return false; if (!getTagsList() .equals(other.getTagsList())) return false; if (hasObjectLock() != other.hasObjectLock()) return false; if (hasObjectLock()) { if (!getObjectLock() .equals(other.getObjectLock())) return false; } if (hasEncryption() != other.hasEncryption()) return false; if (hasEncryption()) { if (!getEncryption() .equals(other.getEncryption())) 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 = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (hasAnonymousAccessFlags()) { hash = (37 * hash) + ANONYMOUS_ACCESS_FLAGS_FIELD_NUMBER; hash = (53 * hash) + getAnonymousAccessFlags().hashCode(); } hash = (37 * hash) + DEFAULT_STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getDefaultStorageClass().hashCode(); hash = (37 * hash) + VERSIONING_FIELD_NUMBER; hash = (53 * hash) + versioning_; hash = (37 * hash) + MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxSize()); if (hasPolicy()) { hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + getPolicy().hashCode(); } if (hasAcl()) { hash = (37 * hash) + ACL_FIELD_NUMBER; hash = (53 * hash) + getAcl().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (getCorsCount() > 0) { hash = (37 * hash) + CORS_FIELD_NUMBER; hash = (53 * hash) + getCorsList().hashCode(); } if (hasWebsiteSettings()) { hash = (37 * hash) + WEBSITE_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getWebsiteSettings().hashCode(); } if (getLifecycleRulesCount() > 0) { hash = (37 * hash) + LIFECYCLE_RULES_FIELD_NUMBER; hash = (53 * hash) + getLifecycleRulesList().hashCode(); } if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } if (hasObjectLock()) { hash = (37 * hash) + OBJECT_LOCK_FIELD_NUMBER; hash = (53 * hash) + getObjectLock().hashCode(); } if (hasEncryption()) { hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; hash = (53 * hash) + getEncryption().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.Bucket parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Bucket 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.storage.v1.BucketOuterClass.Bucket parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Bucket 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.storage.v1.BucketOuterClass.Bucket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Bucket parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Bucket parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Bucket 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.storage.v1.BucketOuterClass.Bucket parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Bucket 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.storage.v1.BucketOuterClass.Bucket parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Bucket 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.storage.v1.BucketOuterClass.Bucket 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; } /** *
     * A bucket resource.
     * For details about the concept, see [documentation](/docs/storage/concepts/bucket).
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.Bucket} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.Bucket) yandex.cloud.api.storage.v1.BucketOuterClass.BucketOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Bucket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Bucket_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Bucket.class, yandex.cloud.api.storage.v1.BucketOuterClass.Bucket.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.Bucket.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCorsFieldBuilder(); getLifecycleRulesFieldBuilder(); getTagsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; folderId_ = ""; if (anonymousAccessFlagsBuilder_ == null) { anonymousAccessFlags_ = null; } else { anonymousAccessFlags_ = null; anonymousAccessFlagsBuilder_ = null; } defaultStorageClass_ = ""; versioning_ = 0; maxSize_ = 0L; if (policyBuilder_ == null) { policy_ = null; } else { policy_ = null; policyBuilder_ = null; } if (aclBuilder_ == null) { acl_ = null; } else { acl_ = null; aclBuilder_ = null; } if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (corsBuilder_ == null) { cors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { corsBuilder_.clear(); } if (websiteSettingsBuilder_ == null) { websiteSettings_ = null; } else { websiteSettings_ = null; websiteSettingsBuilder_ = null; } if (lifecycleRulesBuilder_ == null) { lifecycleRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { lifecycleRulesBuilder_.clear(); } if (tagsBuilder_ == null) { tags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { tagsBuilder_.clear(); } if (objectLockBuilder_ == null) { objectLock_ = null; } else { objectLock_ = null; objectLockBuilder_ = null; } if (encryptionBuilder_ == null) { encryption_ = null; } else { encryption_ = null; encryptionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Bucket_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Bucket getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.Bucket.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Bucket build() { yandex.cloud.api.storage.v1.BucketOuterClass.Bucket result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Bucket buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.Bucket result = new yandex.cloud.api.storage.v1.BucketOuterClass.Bucket(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; result.folderId_ = folderId_; if (anonymousAccessFlagsBuilder_ == null) { result.anonymousAccessFlags_ = anonymousAccessFlags_; } else { result.anonymousAccessFlags_ = anonymousAccessFlagsBuilder_.build(); } result.defaultStorageClass_ = defaultStorageClass_; result.versioning_ = versioning_; result.maxSize_ = maxSize_; if (policyBuilder_ == null) { result.policy_ = policy_; } else { result.policy_ = policyBuilder_.build(); } if (aclBuilder_ == null) { result.acl_ = acl_; } else { result.acl_ = aclBuilder_.build(); } if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (corsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { cors_ = java.util.Collections.unmodifiableList(cors_); bitField0_ = (bitField0_ & ~0x00000001); } result.cors_ = cors_; } else { result.cors_ = corsBuilder_.build(); } if (websiteSettingsBuilder_ == null) { result.websiteSettings_ = websiteSettings_; } else { result.websiteSettings_ = websiteSettingsBuilder_.build(); } if (lifecycleRulesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { lifecycleRules_ = java.util.Collections.unmodifiableList(lifecycleRules_); bitField0_ = (bitField0_ & ~0x00000002); } result.lifecycleRules_ = lifecycleRules_; } else { result.lifecycleRules_ = lifecycleRulesBuilder_.build(); } if (tagsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { tags_ = java.util.Collections.unmodifiableList(tags_); bitField0_ = (bitField0_ & ~0x00000004); } result.tags_ = tags_; } else { result.tags_ = tagsBuilder_.build(); } if (objectLockBuilder_ == null) { result.objectLock_ = objectLock_; } else { result.objectLock_ = objectLockBuilder_.build(); } if (encryptionBuilder_ == null) { result.encryption_ = encryption_; } else { result.encryption_ = encryptionBuilder_.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.storage.v1.BucketOuterClass.Bucket) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.Bucket)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.Bucket other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.Bucket.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasAnonymousAccessFlags()) { mergeAnonymousAccessFlags(other.getAnonymousAccessFlags()); } if (!other.getDefaultStorageClass().isEmpty()) { defaultStorageClass_ = other.defaultStorageClass_; onChanged(); } if (other.versioning_ != 0) { setVersioningValue(other.getVersioningValue()); } if (other.getMaxSize() != 0L) { setMaxSize(other.getMaxSize()); } if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } if (other.hasAcl()) { mergeAcl(other.getAcl()); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (corsBuilder_ == null) { if (!other.cors_.isEmpty()) { if (cors_.isEmpty()) { cors_ = other.cors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCorsIsMutable(); cors_.addAll(other.cors_); } onChanged(); } } else { if (!other.cors_.isEmpty()) { if (corsBuilder_.isEmpty()) { corsBuilder_.dispose(); corsBuilder_ = null; cors_ = other.cors_; bitField0_ = (bitField0_ & ~0x00000001); corsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCorsFieldBuilder() : null; } else { corsBuilder_.addAllMessages(other.cors_); } } } if (other.hasWebsiteSettings()) { mergeWebsiteSettings(other.getWebsiteSettings()); } if (lifecycleRulesBuilder_ == null) { if (!other.lifecycleRules_.isEmpty()) { if (lifecycleRules_.isEmpty()) { lifecycleRules_ = other.lifecycleRules_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLifecycleRulesIsMutable(); lifecycleRules_.addAll(other.lifecycleRules_); } onChanged(); } } else { if (!other.lifecycleRules_.isEmpty()) { if (lifecycleRulesBuilder_.isEmpty()) { lifecycleRulesBuilder_.dispose(); lifecycleRulesBuilder_ = null; lifecycleRules_ = other.lifecycleRules_; bitField0_ = (bitField0_ & ~0x00000002); lifecycleRulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLifecycleRulesFieldBuilder() : null; } else { lifecycleRulesBuilder_.addAllMessages(other.lifecycleRules_); } } } if (tagsBuilder_ == null) { if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } } else { if (!other.tags_.isEmpty()) { if (tagsBuilder_.isEmpty()) { tagsBuilder_.dispose(); tagsBuilder_ = null; tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000004); tagsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTagsFieldBuilder() : null; } else { tagsBuilder_.addAllMessages(other.tags_); } } } if (other.hasObjectLock()) { mergeObjectLock(other.getObjectLock()); } if (other.hasEncryption()) { mergeEncryption(other.getEncryption()); } 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.storage.v1.BucketOuterClass.Bucket parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.Bucket) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the bucket. Always equal to [name], which has priority.
       * 
* * 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 bucket. Always equal to [name], which has priority.
       * 
* * 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 bucket. Always equal to [name], which has priority.
       * 
* * 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 bucket. Always equal to [name], which has priority.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the bucket. Always equal to [name], which has priority.
       * 
* * 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; } private java.lang.Object name_ = ""; /** *
       * Name of the bucket.
       * The name is unique within the platform. For naming limitations and rules, see
       * [documentation](/docs/storage/concepts/bucket#naming).
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the bucket.
       * The name is unique within the platform. For naming limitations and rules, see
       * [documentation](/docs/storage/concepts/bucket#naming).
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the bucket.
       * The name is unique within the platform. For naming limitations and rules, see
       * [documentation](/docs/storage/concepts/bucket#naming).
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the bucket.
       * The name is unique within the platform. For naming limitations and rules, see
       * [documentation](/docs/storage/concepts/bucket#naming).
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the bucket.
       * The name is unique within the platform. For naming limitations and rules, see
       * [documentation](/docs/storage/concepts/bucket#naming).
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder that the bucket belongs to.
       * 
* * string folder_id = 3; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder that the bucket belongs to.
       * 
* * string folder_id = 3; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder that the bucket belongs to.
       * 
* * string folder_id = 3; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
       * ID of the folder that the bucket belongs to.
       * 
* * string folder_id = 3; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the bucket belongs to.
       * 
* * string folder_id = 3; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags anonymousAccessFlags_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder> anonymousAccessFlagsBuilder_; /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; * @return Whether the anonymousAccessFlags field is set. */ public boolean hasAnonymousAccessFlags() { return anonymousAccessFlagsBuilder_ != null || anonymousAccessFlags_ != null; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; * @return The anonymousAccessFlags. */ public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags getAnonymousAccessFlags() { if (anonymousAccessFlagsBuilder_ == null) { return anonymousAccessFlags_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.getDefaultInstance() : anonymousAccessFlags_; } else { return anonymousAccessFlagsBuilder_.getMessage(); } } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; */ public Builder setAnonymousAccessFlags(yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags value) { if (anonymousAccessFlagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } anonymousAccessFlags_ = value; onChanged(); } else { anonymousAccessFlagsBuilder_.setMessage(value); } return this; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; */ public Builder setAnonymousAccessFlags( yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder builderForValue) { if (anonymousAccessFlagsBuilder_ == null) { anonymousAccessFlags_ = builderForValue.build(); onChanged(); } else { anonymousAccessFlagsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; */ public Builder mergeAnonymousAccessFlags(yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags value) { if (anonymousAccessFlagsBuilder_ == null) { if (anonymousAccessFlags_ != null) { anonymousAccessFlags_ = yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.newBuilder(anonymousAccessFlags_).mergeFrom(value).buildPartial(); } else { anonymousAccessFlags_ = value; } onChanged(); } else { anonymousAccessFlagsBuilder_.mergeFrom(value); } return this; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; */ public Builder clearAnonymousAccessFlags() { if (anonymousAccessFlagsBuilder_ == null) { anonymousAccessFlags_ = null; onChanged(); } else { anonymousAccessFlags_ = null; anonymousAccessFlagsBuilder_ = null; } return this; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder getAnonymousAccessFlagsBuilder() { onChanged(); return getAnonymousAccessFlagsFieldBuilder().getBuilder(); } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder getAnonymousAccessFlagsOrBuilder() { if (anonymousAccessFlagsBuilder_ != null) { return anonymousAccessFlagsBuilder_.getMessageOrBuilder(); } else { return anonymousAccessFlags_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.getDefaultInstance() : anonymousAccessFlags_; } } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder> getAnonymousAccessFlagsFieldBuilder() { if (anonymousAccessFlagsBuilder_ == null) { anonymousAccessFlagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder>( getAnonymousAccessFlags(), getParentForChildren(), isClean()); anonymousAccessFlags_ = null; } return anonymousAccessFlagsBuilder_; } private java.lang.Object defaultStorageClass_ = ""; /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string default_storage_class = 5; * @return The defaultStorageClass. */ public java.lang.String getDefaultStorageClass() { java.lang.Object ref = defaultStorageClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultStorageClass_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string default_storage_class = 5; * @return The bytes for defaultStorageClass. */ public com.google.protobuf.ByteString getDefaultStorageClassBytes() { java.lang.Object ref = defaultStorageClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultStorageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string default_storage_class = 5; * @param value The defaultStorageClass to set. * @return This builder for chaining. */ public Builder setDefaultStorageClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultStorageClass_ = value; onChanged(); return this; } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string default_storage_class = 5; * @return This builder for chaining. */ public Builder clearDefaultStorageClass() { defaultStorageClass_ = getDefaultInstance().getDefaultStorageClass(); onChanged(); return this; } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string default_storage_class = 5; * @param value The bytes for defaultStorageClass to set. * @return This builder for chaining. */ public Builder setDefaultStorageClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultStorageClass_ = value; onChanged(); return this; } private int versioning_ = 0; /** *
       * Bucket versioning status.
       * For details, see [documentation](/docs/storage/concepts/versioning).
       * 
* * .yandex.cloud.storage.v1.Versioning versioning = 6; * @return The enum numeric value on the wire for versioning. */ @java.lang.Override public int getVersioningValue() { return versioning_; } /** *
       * Bucket versioning status.
       * For details, see [documentation](/docs/storage/concepts/versioning).
       * 
* * .yandex.cloud.storage.v1.Versioning versioning = 6; * @param value The enum numeric value on the wire for versioning to set. * @return This builder for chaining. */ public Builder setVersioningValue(int value) { versioning_ = value; onChanged(); return this; } /** *
       * Bucket versioning status.
       * For details, see [documentation](/docs/storage/concepts/versioning).
       * 
* * .yandex.cloud.storage.v1.Versioning versioning = 6; * @return The versioning. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Versioning getVersioning() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.Versioning result = yandex.cloud.api.storage.v1.BucketOuterClass.Versioning.valueOf(versioning_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.Versioning.UNRECOGNIZED : result; } /** *
       * Bucket versioning status.
       * For details, see [documentation](/docs/storage/concepts/versioning).
       * 
* * .yandex.cloud.storage.v1.Versioning versioning = 6; * @param value The versioning to set. * @return This builder for chaining. */ public Builder setVersioning(yandex.cloud.api.storage.v1.BucketOuterClass.Versioning value) { if (value == null) { throw new NullPointerException(); } versioning_ = value.getNumber(); onChanged(); return this; } /** *
       * Bucket versioning status.
       * For details, see [documentation](/docs/storage/concepts/versioning).
       * 
* * .yandex.cloud.storage.v1.Versioning versioning = 6; * @return This builder for chaining. */ public Builder clearVersioning() { versioning_ = 0; onChanged(); return this; } private long maxSize_ ; /** *
       * Maximum size of the bucket, in bytes.
       * For details, see [documentation](/docs/storage/operations/buckets/limit-max-volume).
       * 
* * int64 max_size = 7; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } /** *
       * Maximum size of the bucket, in bytes.
       * For details, see [documentation](/docs/storage/operations/buckets/limit-max-volume).
       * 
* * int64 max_size = 7; * @param value The maxSize to set. * @return This builder for chaining. */ public Builder setMaxSize(long value) { maxSize_ = value; onChanged(); return this; } /** *
       * Maximum size of the bucket, in bytes.
       * For details, see [documentation](/docs/storage/operations/buckets/limit-max-volume).
       * 
* * int64 max_size = 7; * @return This builder for chaining. */ public Builder clearMaxSize() { maxSize_ = 0L; onChanged(); return this; } private com.google.protobuf.Struct policy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> policyBuilder_; /** *
       * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
       * For details, see [documentation](/docs/storage/concepts/policy).
       * 
* * .google.protobuf.Struct policy = 8; * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** *
       * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
       * For details, see [documentation](/docs/storage/concepts/policy).
       * 
* * .google.protobuf.Struct policy = 8; * @return The policy. */ public com.google.protobuf.Struct getPolicy() { if (policyBuilder_ == null) { return policy_ == null ? com.google.protobuf.Struct.getDefaultInstance() : policy_; } else { return policyBuilder_.getMessage(); } } /** *
       * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
       * For details, see [documentation](/docs/storage/concepts/policy).
       * 
* * .google.protobuf.Struct policy = 8; */ public Builder setPolicy(com.google.protobuf.Struct value) { if (policyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { policyBuilder_.setMessage(value); } return this; } /** *
       * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
       * For details, see [documentation](/docs/storage/concepts/policy).
       * 
* * .google.protobuf.Struct policy = 8; */ public Builder setPolicy( com.google.protobuf.Struct.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { policyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
       * For details, see [documentation](/docs/storage/concepts/policy).
       * 
* * .google.protobuf.Struct policy = 8; */ public Builder mergePolicy(com.google.protobuf.Struct value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = com.google.protobuf.Struct.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { policyBuilder_.mergeFrom(value); } return this; } /** *
       * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
       * For details, see [documentation](/docs/storage/concepts/policy).
       * 
* * .google.protobuf.Struct policy = 8; */ public Builder clearPolicy() { if (policyBuilder_ == null) { policy_ = null; onChanged(); } else { policy_ = null; policyBuilder_ = null; } return this; } /** *
       * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
       * For details, see [documentation](/docs/storage/concepts/policy).
       * 
* * .google.protobuf.Struct policy = 8; */ public com.google.protobuf.Struct.Builder getPolicyBuilder() { onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** *
       * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
       * For details, see [documentation](/docs/storage/concepts/policy).
       * 
* * .google.protobuf.Struct policy = 8; */ public com.google.protobuf.StructOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { return policy_ == null ? com.google.protobuf.Struct.getDefaultInstance() : policy_; } } /** *
       * Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
       * For details, see [documentation](/docs/storage/concepts/policy).
       * 
* * .google.protobuf.Struct policy = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; } private yandex.cloud.api.storage.v1.BucketOuterClass.ACL acl_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ACL, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ACLOrBuilder> aclBuilder_; /** *
       * Access control list (ACL) of the bucket.
       * For details, see [documentation](/docs/storage/concepts/acl).
       * 
* * .yandex.cloud.storage.v1.ACL acl = 9; * @return Whether the acl field is set. */ public boolean hasAcl() { return aclBuilder_ != null || acl_ != null; } /** *
       * Access control list (ACL) of the bucket.
       * For details, see [documentation](/docs/storage/concepts/acl).
       * 
* * .yandex.cloud.storage.v1.ACL acl = 9; * @return The acl. */ public yandex.cloud.api.storage.v1.BucketOuterClass.ACL getAcl() { if (aclBuilder_ == null) { return acl_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ACL.getDefaultInstance() : acl_; } else { return aclBuilder_.getMessage(); } } /** *
       * Access control list (ACL) of the bucket.
       * For details, see [documentation](/docs/storage/concepts/acl).
       * 
* * .yandex.cloud.storage.v1.ACL acl = 9; */ public Builder setAcl(yandex.cloud.api.storage.v1.BucketOuterClass.ACL value) { if (aclBuilder_ == null) { if (value == null) { throw new NullPointerException(); } acl_ = value; onChanged(); } else { aclBuilder_.setMessage(value); } return this; } /** *
       * Access control list (ACL) of the bucket.
       * For details, see [documentation](/docs/storage/concepts/acl).
       * 
* * .yandex.cloud.storage.v1.ACL acl = 9; */ public Builder setAcl( yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Builder builderForValue) { if (aclBuilder_ == null) { acl_ = builderForValue.build(); onChanged(); } else { aclBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Access control list (ACL) of the bucket.
       * For details, see [documentation](/docs/storage/concepts/acl).
       * 
* * .yandex.cloud.storage.v1.ACL acl = 9; */ public Builder mergeAcl(yandex.cloud.api.storage.v1.BucketOuterClass.ACL value) { if (aclBuilder_ == null) { if (acl_ != null) { acl_ = yandex.cloud.api.storage.v1.BucketOuterClass.ACL.newBuilder(acl_).mergeFrom(value).buildPartial(); } else { acl_ = value; } onChanged(); } else { aclBuilder_.mergeFrom(value); } return this; } /** *
       * Access control list (ACL) of the bucket.
       * For details, see [documentation](/docs/storage/concepts/acl).
       * 
* * .yandex.cloud.storage.v1.ACL acl = 9; */ public Builder clearAcl() { if (aclBuilder_ == null) { acl_ = null; onChanged(); } else { acl_ = null; aclBuilder_ = null; } return this; } /** *
       * Access control list (ACL) of the bucket.
       * For details, see [documentation](/docs/storage/concepts/acl).
       * 
* * .yandex.cloud.storage.v1.ACL acl = 9; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Builder getAclBuilder() { onChanged(); return getAclFieldBuilder().getBuilder(); } /** *
       * Access control list (ACL) of the bucket.
       * For details, see [documentation](/docs/storage/concepts/acl).
       * 
* * .yandex.cloud.storage.v1.ACL acl = 9; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ACLOrBuilder getAclOrBuilder() { if (aclBuilder_ != null) { return aclBuilder_.getMessageOrBuilder(); } else { return acl_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ACL.getDefaultInstance() : acl_; } } /** *
       * Access control list (ACL) of the bucket.
       * For details, see [documentation](/docs/storage/concepts/acl).
       * 
* * .yandex.cloud.storage.v1.ACL acl = 9; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ACL, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ACLOrBuilder> getAclFieldBuilder() { if (aclBuilder_ == null) { aclBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ACL, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ACLOrBuilder>( getAcl(), getParentForChildren(), isClean()); acl_ = null; } return aclBuilder_; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 10; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 10; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 10; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 10; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 10; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 10; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 10; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 10; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.util.List cors_ = java.util.Collections.emptyList(); private void ensureCorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { cors_ = new java.util.ArrayList(cors_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRuleOrBuilder> corsBuilder_; /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public java.util.List getCorsList() { if (corsBuilder_ == null) { return java.util.Collections.unmodifiableList(cors_); } else { return corsBuilder_.getMessageList(); } } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public int getCorsCount() { if (corsBuilder_ == null) { return cors_.size(); } else { return corsBuilder_.getCount(); } } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule getCors(int index) { if (corsBuilder_ == null) { return cors_.get(index); } else { return corsBuilder_.getMessage(index); } } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public Builder setCors( int index, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule value) { if (corsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCorsIsMutable(); cors_.set(index, value); onChanged(); } else { corsBuilder_.setMessage(index, value); } return this; } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public Builder setCors( int index, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder builderForValue) { if (corsBuilder_ == null) { ensureCorsIsMutable(); cors_.set(index, builderForValue.build()); onChanged(); } else { corsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public Builder addCors(yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule value) { if (corsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCorsIsMutable(); cors_.add(value); onChanged(); } else { corsBuilder_.addMessage(value); } return this; } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public Builder addCors( int index, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule value) { if (corsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCorsIsMutable(); cors_.add(index, value); onChanged(); } else { corsBuilder_.addMessage(index, value); } return this; } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public Builder addCors( yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder builderForValue) { if (corsBuilder_ == null) { ensureCorsIsMutable(); cors_.add(builderForValue.build()); onChanged(); } else { corsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public Builder addCors( int index, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder builderForValue) { if (corsBuilder_ == null) { ensureCorsIsMutable(); cors_.add(index, builderForValue.build()); onChanged(); } else { corsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public Builder addAllCors( java.lang.Iterable values) { if (corsBuilder_ == null) { ensureCorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, cors_); onChanged(); } else { corsBuilder_.addAllMessages(values); } return this; } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public Builder clearCors() { if (corsBuilder_ == null) { cors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { corsBuilder_.clear(); } return this; } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public Builder removeCors(int index) { if (corsBuilder_ == null) { ensureCorsIsMutable(); cors_.remove(index); onChanged(); } else { corsBuilder_.remove(index); } return this; } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder getCorsBuilder( int index) { return getCorsFieldBuilder().getBuilder(index); } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRuleOrBuilder getCorsOrBuilder( int index) { if (corsBuilder_ == null) { return cors_.get(index); } else { return corsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public java.util.List getCorsOrBuilderList() { if (corsBuilder_ != null) { return corsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cors_); } } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder addCorsBuilder() { return getCorsFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.getDefaultInstance()); } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder addCorsBuilder( int index) { return getCorsFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.getDefaultInstance()); } /** *
       * List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
       * For details, see [documentation](/docs/storage/concepts/cors).
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule cors = 11; */ public java.util.List getCorsBuilderList() { return getCorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRuleOrBuilder> getCorsFieldBuilder() { if (corsBuilder_ == null) { corsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRuleOrBuilder>( cors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); cors_ = null; } return corsBuilder_; } private yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings websiteSettings_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettingsOrBuilder> websiteSettingsBuilder_; /** *
       * Configuration for hosting a static website in the bucket.
       * For details, see [documentation](/docs/storage/concepts/hosting).
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; * @return Whether the websiteSettings field is set. */ public boolean hasWebsiteSettings() { return websiteSettingsBuilder_ != null || websiteSettings_ != null; } /** *
       * Configuration for hosting a static website in the bucket.
       * For details, see [documentation](/docs/storage/concepts/hosting).
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; * @return The websiteSettings. */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings getWebsiteSettings() { if (websiteSettingsBuilder_ == null) { return websiteSettings_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.getDefaultInstance() : websiteSettings_; } else { return websiteSettingsBuilder_.getMessage(); } } /** *
       * Configuration for hosting a static website in the bucket.
       * For details, see [documentation](/docs/storage/concepts/hosting).
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; */ public Builder setWebsiteSettings(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings value) { if (websiteSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } websiteSettings_ = value; onChanged(); } else { websiteSettingsBuilder_.setMessage(value); } return this; } /** *
       * Configuration for hosting a static website in the bucket.
       * For details, see [documentation](/docs/storage/concepts/hosting).
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; */ public Builder setWebsiteSettings( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Builder builderForValue) { if (websiteSettingsBuilder_ == null) { websiteSettings_ = builderForValue.build(); onChanged(); } else { websiteSettingsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for hosting a static website in the bucket.
       * For details, see [documentation](/docs/storage/concepts/hosting).
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; */ public Builder mergeWebsiteSettings(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings value) { if (websiteSettingsBuilder_ == null) { if (websiteSettings_ != null) { websiteSettings_ = yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.newBuilder(websiteSettings_).mergeFrom(value).buildPartial(); } else { websiteSettings_ = value; } onChanged(); } else { websiteSettingsBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for hosting a static website in the bucket.
       * For details, see [documentation](/docs/storage/concepts/hosting).
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; */ public Builder clearWebsiteSettings() { if (websiteSettingsBuilder_ == null) { websiteSettings_ = null; onChanged(); } else { websiteSettings_ = null; websiteSettingsBuilder_ = null; } return this; } /** *
       * Configuration for hosting a static website in the bucket.
       * For details, see [documentation](/docs/storage/concepts/hosting).
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Builder getWebsiteSettingsBuilder() { onChanged(); return getWebsiteSettingsFieldBuilder().getBuilder(); } /** *
       * Configuration for hosting a static website in the bucket.
       * For details, see [documentation](/docs/storage/concepts/hosting).
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettingsOrBuilder getWebsiteSettingsOrBuilder() { if (websiteSettingsBuilder_ != null) { return websiteSettingsBuilder_.getMessageOrBuilder(); } else { return websiteSettings_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.getDefaultInstance() : websiteSettings_; } } /** *
       * Configuration for hosting a static website in the bucket.
       * For details, see [documentation](/docs/storage/concepts/hosting).
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings website_settings = 12; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettingsOrBuilder> getWebsiteSettingsFieldBuilder() { if (websiteSettingsBuilder_ == null) { websiteSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettingsOrBuilder>( getWebsiteSettings(), getParentForChildren(), isClean()); websiteSettings_ = null; } return websiteSettingsBuilder_; } private java.util.List lifecycleRules_ = java.util.Collections.emptyList(); private void ensureLifecycleRulesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { lifecycleRules_ = new java.util.ArrayList(lifecycleRules_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRuleOrBuilder> lifecycleRulesBuilder_; /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public java.util.List getLifecycleRulesList() { if (lifecycleRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(lifecycleRules_); } else { return lifecycleRulesBuilder_.getMessageList(); } } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public int getLifecycleRulesCount() { if (lifecycleRulesBuilder_ == null) { return lifecycleRules_.size(); } else { return lifecycleRulesBuilder_.getCount(); } } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule getLifecycleRules(int index) { if (lifecycleRulesBuilder_ == null) { return lifecycleRules_.get(index); } else { return lifecycleRulesBuilder_.getMessage(index); } } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public Builder setLifecycleRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule value) { if (lifecycleRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLifecycleRulesIsMutable(); lifecycleRules_.set(index, value); onChanged(); } else { lifecycleRulesBuilder_.setMessage(index, value); } return this; } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public Builder setLifecycleRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder builderForValue) { if (lifecycleRulesBuilder_ == null) { ensureLifecycleRulesIsMutable(); lifecycleRules_.set(index, builderForValue.build()); onChanged(); } else { lifecycleRulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public Builder addLifecycleRules(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule value) { if (lifecycleRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLifecycleRulesIsMutable(); lifecycleRules_.add(value); onChanged(); } else { lifecycleRulesBuilder_.addMessage(value); } return this; } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public Builder addLifecycleRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule value) { if (lifecycleRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLifecycleRulesIsMutable(); lifecycleRules_.add(index, value); onChanged(); } else { lifecycleRulesBuilder_.addMessage(index, value); } return this; } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public Builder addLifecycleRules( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder builderForValue) { if (lifecycleRulesBuilder_ == null) { ensureLifecycleRulesIsMutable(); lifecycleRules_.add(builderForValue.build()); onChanged(); } else { lifecycleRulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public Builder addLifecycleRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder builderForValue) { if (lifecycleRulesBuilder_ == null) { ensureLifecycleRulesIsMutable(); lifecycleRules_.add(index, builderForValue.build()); onChanged(); } else { lifecycleRulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public Builder addAllLifecycleRules( java.lang.Iterable values) { if (lifecycleRulesBuilder_ == null) { ensureLifecycleRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, lifecycleRules_); onChanged(); } else { lifecycleRulesBuilder_.addAllMessages(values); } return this; } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public Builder clearLifecycleRules() { if (lifecycleRulesBuilder_ == null) { lifecycleRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { lifecycleRulesBuilder_.clear(); } return this; } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public Builder removeLifecycleRules(int index) { if (lifecycleRulesBuilder_ == null) { ensureLifecycleRulesIsMutable(); lifecycleRules_.remove(index); onChanged(); } else { lifecycleRulesBuilder_.remove(index); } return this; } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder getLifecycleRulesBuilder( int index) { return getLifecycleRulesFieldBuilder().getBuilder(index); } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRuleOrBuilder getLifecycleRulesOrBuilder( int index) { if (lifecycleRulesBuilder_ == null) { return lifecycleRules_.get(index); } else { return lifecycleRulesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public java.util.List getLifecycleRulesOrBuilderList() { if (lifecycleRulesBuilder_ != null) { return lifecycleRulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(lifecycleRules_); } } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder addLifecycleRulesBuilder() { return getLifecycleRulesFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.getDefaultInstance()); } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder addLifecycleRulesBuilder( int index) { return getLifecycleRulesFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.getDefaultInstance()); } /** *
       * List of object lifecycle rules for the bucket.
       * For details, see [documentation](/docs/storage/concepts/lifecycles).
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule lifecycle_rules = 13; */ public java.util.List getLifecycleRulesBuilderList() { return getLifecycleRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRuleOrBuilder> getLifecycleRulesFieldBuilder() { if (lifecycleRulesBuilder_ == null) { lifecycleRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRuleOrBuilder>( lifecycleRules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); lifecycleRules_ = null; } return lifecycleRulesBuilder_; } private java.util.List tags_ = java.util.Collections.emptyList(); private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { tags_ = new java.util.ArrayList(tags_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Tag, yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.TagOrBuilder> tagsBuilder_; /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public java.util.List getTagsList() { if (tagsBuilder_ == null) { return java.util.Collections.unmodifiableList(tags_); } else { return tagsBuilder_.getMessageList(); } } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public int getTagsCount() { if (tagsBuilder_ == null) { return tags_.size(); } else { return tagsBuilder_.getCount(); } } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Tag getTags(int index) { if (tagsBuilder_ == null) { return tags_.get(index); } else { return tagsBuilder_.getMessage(index); } } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public Builder setTags( int index, yandex.cloud.api.storage.v1.BucketOuterClass.Tag value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); } else { tagsBuilder_.setMessage(index, value); } return this; } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public Builder setTags( int index, yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.set(index, builderForValue.build()); onChanged(); } else { tagsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public Builder addTags(yandex.cloud.api.storage.v1.BucketOuterClass.Tag value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); } else { tagsBuilder_.addMessage(value); } return this; } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public Builder addTags( int index, yandex.cloud.api.storage.v1.BucketOuterClass.Tag value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(index, value); onChanged(); } else { tagsBuilder_.addMessage(index, value); } return this; } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public Builder addTags( yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(builderForValue.build()); onChanged(); } else { tagsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public Builder addTags( int index, yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(index, builderForValue.build()); onChanged(); } else { tagsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public Builder addAllTags( java.lang.Iterable values) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); } else { tagsBuilder_.addAllMessages(values); } return this; } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public Builder clearTags() { if (tagsBuilder_ == null) { tags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { tagsBuilder_.clear(); } return this; } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public Builder removeTags(int index) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.remove(index); onChanged(); } else { tagsBuilder_.remove(index); } return this; } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder getTagsBuilder( int index) { return getTagsFieldBuilder().getBuilder(index); } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public yandex.cloud.api.storage.v1.BucketOuterClass.TagOrBuilder getTagsOrBuilder( int index) { if (tagsBuilder_ == null) { return tags_.get(index); } else { return tagsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public java.util.List getTagsOrBuilderList() { if (tagsBuilder_ != null) { return tagsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tags_); } } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder addTagsBuilder() { return getTagsFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.Tag.getDefaultInstance()); } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder addTagsBuilder( int index) { return getTagsFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.Tag.getDefaultInstance()); } /** *
       * List of tags for the bucket.
       * For details, see [documentation](/docs/resource-manager/concepts/labels).
       * 
* * repeated .yandex.cloud.storage.v1.Tag tags = 14; */ public java.util.List getTagsBuilderList() { return getTagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Tag, yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.TagOrBuilder> getTagsFieldBuilder() { if (tagsBuilder_ == null) { tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Tag, yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.TagOrBuilder>( tags_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); tags_ = null; } return tagsBuilder_; } private yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock objectLock_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLockOrBuilder> objectLockBuilder_; /** *
       * Configuration for object lock on the bucket.
       * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
       * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; * @return Whether the objectLock field is set. */ public boolean hasObjectLock() { return objectLockBuilder_ != null || objectLock_ != null; } /** *
       * Configuration for object lock on the bucket.
       * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
       * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; * @return The objectLock. */ public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock getObjectLock() { if (objectLockBuilder_ == null) { return objectLock_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.getDefaultInstance() : objectLock_; } else { return objectLockBuilder_.getMessage(); } } /** *
       * Configuration for object lock on the bucket.
       * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
       * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; */ public Builder setObjectLock(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock value) { if (objectLockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } objectLock_ = value; onChanged(); } else { objectLockBuilder_.setMessage(value); } return this; } /** *
       * Configuration for object lock on the bucket.
       * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
       * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; */ public Builder setObjectLock( yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.Builder builderForValue) { if (objectLockBuilder_ == null) { objectLock_ = builderForValue.build(); onChanged(); } else { objectLockBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for object lock on the bucket.
       * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
       * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; */ public Builder mergeObjectLock(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock value) { if (objectLockBuilder_ == null) { if (objectLock_ != null) { objectLock_ = yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.newBuilder(objectLock_).mergeFrom(value).buildPartial(); } else { objectLock_ = value; } onChanged(); } else { objectLockBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for object lock on the bucket.
       * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
       * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; */ public Builder clearObjectLock() { if (objectLockBuilder_ == null) { objectLock_ = null; onChanged(); } else { objectLock_ = null; objectLockBuilder_ = null; } return this; } /** *
       * Configuration for object lock on the bucket.
       * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
       * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.Builder getObjectLockBuilder() { onChanged(); return getObjectLockFieldBuilder().getBuilder(); } /** *
       * Configuration for object lock on the bucket.
       * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
       * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLockOrBuilder getObjectLockOrBuilder() { if (objectLockBuilder_ != null) { return objectLockBuilder_.getMessageOrBuilder(); } else { return objectLock_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.getDefaultInstance() : objectLock_; } } /** *
       * Configuration for object lock on the bucket.
       * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
       * 
* * .yandex.cloud.storage.v1.ObjectLock object_lock = 15; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLockOrBuilder> getObjectLockFieldBuilder() { if (objectLockBuilder_ == null) { objectLockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLockOrBuilder>( getObjectLock(), getParentForChildren(), isClean()); objectLock_ = null; } return objectLockBuilder_; } private yandex.cloud.api.storage.v1.BucketOuterClass.Encryption encryption_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Encryption, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.EncryptionOrBuilder> encryptionBuilder_; /** *
       * Configuration for bucket's encryption
       * For detauls, see [documentation](/docs/storage/concepts/encryption)
       * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; * @return Whether the encryption field is set. */ public boolean hasEncryption() { return encryptionBuilder_ != null || encryption_ != null; } /** *
       * Configuration for bucket's encryption
       * For detauls, see [documentation](/docs/storage/concepts/encryption)
       * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; * @return The encryption. */ public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption getEncryption() { if (encryptionBuilder_ == null) { return encryption_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.getDefaultInstance() : encryption_; } else { return encryptionBuilder_.getMessage(); } } /** *
       * Configuration for bucket's encryption
       * For detauls, see [documentation](/docs/storage/concepts/encryption)
       * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; */ public Builder setEncryption(yandex.cloud.api.storage.v1.BucketOuterClass.Encryption value) { if (encryptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } encryption_ = value; onChanged(); } else { encryptionBuilder_.setMessage(value); } return this; } /** *
       * Configuration for bucket's encryption
       * For detauls, see [documentation](/docs/storage/concepts/encryption)
       * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; */ public Builder setEncryption( yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.Builder builderForValue) { if (encryptionBuilder_ == null) { encryption_ = builderForValue.build(); onChanged(); } else { encryptionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for bucket's encryption
       * For detauls, see [documentation](/docs/storage/concepts/encryption)
       * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; */ public Builder mergeEncryption(yandex.cloud.api.storage.v1.BucketOuterClass.Encryption value) { if (encryptionBuilder_ == null) { if (encryption_ != null) { encryption_ = yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.newBuilder(encryption_).mergeFrom(value).buildPartial(); } else { encryption_ = value; } onChanged(); } else { encryptionBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for bucket's encryption
       * For detauls, see [documentation](/docs/storage/concepts/encryption)
       * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; */ public Builder clearEncryption() { if (encryptionBuilder_ == null) { encryption_ = null; onChanged(); } else { encryption_ = null; encryptionBuilder_ = null; } return this; } /** *
       * Configuration for bucket's encryption
       * For detauls, see [documentation](/docs/storage/concepts/encryption)
       * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.Builder getEncryptionBuilder() { onChanged(); return getEncryptionFieldBuilder().getBuilder(); } /** *
       * Configuration for bucket's encryption
       * For detauls, see [documentation](/docs/storage/concepts/encryption)
       * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; */ public yandex.cloud.api.storage.v1.BucketOuterClass.EncryptionOrBuilder getEncryptionOrBuilder() { if (encryptionBuilder_ != null) { return encryptionBuilder_.getMessageOrBuilder(); } else { return encryption_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.getDefaultInstance() : encryption_; } } /** *
       * Configuration for bucket's encryption
       * For detauls, see [documentation](/docs/storage/concepts/encryption)
       * 
* * .yandex.cloud.storage.v1.Encryption encryption = 16; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Encryption, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.EncryptionOrBuilder> getEncryptionFieldBuilder() { if (encryptionBuilder_ == null) { encryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Encryption, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.EncryptionOrBuilder>( getEncryption(), getParentForChildren(), isClean()); encryption_ = null; } return encryptionBuilder_; } @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.storage.v1.Bucket) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.Bucket) private static final yandex.cloud.api.storage.v1.BucketOuterClass.Bucket DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.Bucket(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Bucket getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Bucket parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Bucket(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.storage.v1.BucketOuterClass.Bucket getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.Tag) com.google.protobuf.MessageOrBuilder { /** *
     * Key of the bucket tag.
     * 
* * string key = 1; * @return The key. */ java.lang.String getKey(); /** *
     * Key of the bucket tag.
     * 
* * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** *
     * Value of the bucket tag.
     * 
* * string value = 2; * @return The value. */ java.lang.String getValue(); /** *
     * Value of the bucket tag.
     * 
* * string value = 2; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code yandex.cloud.storage.v1.Tag} */ public static final class Tag extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.Tag) TagOrBuilder { private static final long serialVersionUID = 0L; // Use Tag.newBuilder() to construct. private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tag() { key_ = ""; value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Tag(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Tag( 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(); key_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); value_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Tag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Tag_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Tag.class, yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** *
     * Key of the bucket tag.
     * 
* * string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** *
     * Key of the bucket tag.
     * 
* * string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** *
     * Value of the bucket tag.
     * 
* * string value = 2; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** *
     * Value of the bucket tag.
     * 
* * string value = 2; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = 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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } 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(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } 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.storage.v1.BucketOuterClass.Tag)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.Tag other = (yandex.cloud.api.storage.v1.BucketOuterClass.Tag) obj; if (!getKey() .equals(other.getKey())) return false; if (!getValue() .equals(other.getValue())) 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.Tag parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Tag 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.storage.v1.BucketOuterClass.Tag parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Tag 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.storage.v1.BucketOuterClass.Tag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Tag parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Tag parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Tag 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.storage.v1.BucketOuterClass.Tag parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Tag 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.storage.v1.BucketOuterClass.Tag parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Tag 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.storage.v1.BucketOuterClass.Tag prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.Tag} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.Tag) yandex.cloud.api.storage.v1.BucketOuterClass.TagOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Tag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Tag_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Tag.class, yandex.cloud.api.storage.v1.BucketOuterClass.Tag.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.Tag.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(); key_ = ""; value_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Tag_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Tag getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.Tag.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Tag build() { yandex.cloud.api.storage.v1.BucketOuterClass.Tag result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Tag buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.Tag result = new yandex.cloud.api.storage.v1.BucketOuterClass.Tag(this); result.key_ = key_; result.value_ = value_; 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.storage.v1.BucketOuterClass.Tag) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.Tag)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.Tag other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.Tag.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; 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.storage.v1.BucketOuterClass.Tag parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.Tag) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object key_ = ""; /** *
       * Key of the bucket tag.
       * 
* * string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Key of the bucket tag.
       * 
* * string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Key of the bucket tag.
       * 
* * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * Key of the bucket tag.
       * 
* * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
       * Key of the bucket tag.
       * 
* * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** *
       * Value of the bucket tag.
       * 
* * string value = 2; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Value of the bucket tag.
       * 
* * string value = 2; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Value of the bucket tag.
       * 
* * string value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** *
       * Value of the bucket tag.
       * 
* * string value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** *
       * Value of the bucket tag.
       * 
* * string value = 2; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = 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.storage.v1.Tag) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.Tag) private static final yandex.cloud.api.storage.v1.BucketOuterClass.Tag DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.Tag(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Tag getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Tag parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Tag(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.storage.v1.BucketOuterClass.Tag getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ACLOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.ACL) com.google.protobuf.MessageOrBuilder { /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ java.util.List getGrantsList(); /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant getGrants(int index); /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ int getGrantsCount(); /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ java.util.List getGrantsOrBuilderList(); /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ yandex.cloud.api.storage.v1.BucketOuterClass.ACL.GrantOrBuilder getGrantsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.storage.v1.ACL} */ public static final class ACL extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.ACL) ACLOrBuilder { private static final long serialVersionUID = 0L; // Use ACL.newBuilder() to construct. private ACL(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ACL() { grants_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ACL(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ACL( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { grants_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } grants_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { grants_ = java.util.Collections.unmodifiableList(grants_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.ACL.class, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Builder.class); } public interface GrantOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.ACL.Grant) com.google.protobuf.MessageOrBuilder { /** *
       * Permission granted by the grant.
       * 
* * .yandex.cloud.storage.v1.ACL.Grant.Permission permission = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for permission. */ int getPermissionValue(); /** *
       * Permission granted by the grant.
       * 
* * .yandex.cloud.storage.v1.ACL.Grant.Permission permission = 1 [(.yandex.cloud.required) = true]; * @return The permission. */ yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission getPermission(); /** *
       * The grantee type for the grant.
       * 
* * .yandex.cloud.storage.v1.ACL.Grant.GrantType grant_type = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for grantType. */ int getGrantTypeValue(); /** *
       * The grantee type for the grant.
       * 
* * .yandex.cloud.storage.v1.ACL.Grant.GrantType grant_type = 2 [(.yandex.cloud.required) = true]; * @return The grantType. */ yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType getGrantType(); /** *
       * ID of the account who is a grantee. Required when the [grant_type] is `GRANT_TYPE_ACCOUNT`.
       * 
* * string grantee_id = 3; * @return The granteeId. */ java.lang.String getGranteeId(); /** *
       * ID of the account who is a grantee. Required when the [grant_type] is `GRANT_TYPE_ACCOUNT`.
       * 
* * string grantee_id = 3; * @return The bytes for granteeId. */ com.google.protobuf.ByteString getGranteeIdBytes(); } /** *
     * A grant resource, used to specify the permission granted and the grantee.
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.ACL.Grant} */ public static final class Grant extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.ACL.Grant) GrantOrBuilder { private static final long serialVersionUID = 0L; // Use Grant.newBuilder() to construct. private Grant(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Grant() { permission_ = 0; grantType_ = 0; granteeId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Grant(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Grant( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); permission_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); grantType_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); granteeId_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_Grant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_Grant_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.class, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder.class); } /** * Protobuf enum {@code yandex.cloud.storage.v1.ACL.Grant.Permission} */ public enum Permission implements com.google.protobuf.ProtocolMessageEnum { /** * PERMISSION_UNSPECIFIED = 0; */ PERMISSION_UNSPECIFIED(0), /** *
         * Allows grantee the `PERMISSION_WRITE`, `PERMISSION_WRITE_ACP`, `PERMISSION_READ`, and `PERMISSION_READ_ACP`
         * on the bucket.
         * Maps to `x-amz-grant-full-control` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of
         * Amazon S3-compatible HTTP API.
         * 
* * PERMISSION_FULL_CONTROL = 1; */ PERMISSION_FULL_CONTROL(1), /** *
         * Allows grantee to create new objects in the bucket. For the bucket and object owners of existing objects, also
         * allows deletions and overwrites of those objects.
         * Maps to `x-amz-grant-write` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon
         * S3-compatible HTTP API.
         * 
* * PERMISSION_WRITE = 2; */ PERMISSION_WRITE(2), /** *
         * Allows grantee to write the ACL for the bucket.
         * Maps to `x-amz-grant-write-acp` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of
         * Amazon S3-compatible HTTP API.
         * 
* * PERMISSION_WRITE_ACP = 3; */ PERMISSION_WRITE_ACP(3), /** *
         * Allows grantee to list the objects in the bucket.
         * Maps to `x-amz-grant-read` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon
         * S3-compatible HTTP API.
         * 
* * PERMISSION_READ = 4; */ PERMISSION_READ(4), /** *
         * Allows grantee to read the bucket ACL
         * Maps to `x-amz-grant-read-acp` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of
         * Amazon S3-compatible HTTP API.
         * 
* * PERMISSION_READ_ACP = 5; */ PERMISSION_READ_ACP(5), UNRECOGNIZED(-1), ; /** * PERMISSION_UNSPECIFIED = 0; */ public static final int PERMISSION_UNSPECIFIED_VALUE = 0; /** *
         * Allows grantee the `PERMISSION_WRITE`, `PERMISSION_WRITE_ACP`, `PERMISSION_READ`, and `PERMISSION_READ_ACP`
         * on the bucket.
         * Maps to `x-amz-grant-full-control` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of
         * Amazon S3-compatible HTTP API.
         * 
* * PERMISSION_FULL_CONTROL = 1; */ public static final int PERMISSION_FULL_CONTROL_VALUE = 1; /** *
         * Allows grantee to create new objects in the bucket. For the bucket and object owners of existing objects, also
         * allows deletions and overwrites of those objects.
         * Maps to `x-amz-grant-write` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon
         * S3-compatible HTTP API.
         * 
* * PERMISSION_WRITE = 2; */ public static final int PERMISSION_WRITE_VALUE = 2; /** *
         * Allows grantee to write the ACL for the bucket.
         * Maps to `x-amz-grant-write-acp` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of
         * Amazon S3-compatible HTTP API.
         * 
* * PERMISSION_WRITE_ACP = 3; */ public static final int PERMISSION_WRITE_ACP_VALUE = 3; /** *
         * Allows grantee to list the objects in the bucket.
         * Maps to `x-amz-grant-read` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon
         * S3-compatible HTTP API.
         * 
* * PERMISSION_READ = 4; */ public static final int PERMISSION_READ_VALUE = 4; /** *
         * Allows grantee to read the bucket ACL
         * Maps to `x-amz-grant-read-acp` header for [bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of
         * Amazon S3-compatible HTTP API.
         * 
* * PERMISSION_READ_ACP = 5; */ public static final int PERMISSION_READ_ACP_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Permission valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Permission forNumber(int value) { switch (value) { case 0: return PERMISSION_UNSPECIFIED; case 1: return PERMISSION_FULL_CONTROL; case 2: return PERMISSION_WRITE; case 3: return PERMISSION_WRITE_ACP; case 4: return PERMISSION_READ; case 5: return PERMISSION_READ_ACP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Permission> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Permission findValueByNumber(int number) { return Permission.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.getDescriptor().getEnumTypes().get(0); } private static final Permission[] VALUES = values(); public static Permission valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Permission(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.storage.v1.ACL.Grant.Permission) } /** * Protobuf enum {@code yandex.cloud.storage.v1.ACL.Grant.GrantType} */ public enum GrantType implements com.google.protobuf.ProtocolMessageEnum { /** * GRANT_TYPE_UNSPECIFIED = 0; */ GRANT_TYPE_UNSPECIFIED(0), /** *
         * A grantee is an [account on the platform](/docs/iam/concepts/#accounts).
         * For this grantee type, you need to specify the user ID in [Bucket.acl.grants.grantee_id] field. To get user ID, see
         * [instruction](/docs/iam/operations/users/get).
         * Maps to using `id="*"` value for `x-amz-grant-*` header ([bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput)
         * method of Amazon S3-compatible HTTP API).
         * 
* * GRANT_TYPE_ACCOUNT = 1; */ GRANT_TYPE_ACCOUNT(1), /** *
         * Grantees are all authenticated users, both from your clouds and other users' clouds. Access
         * permission to this group allows any account on the platform to access the resource via a signed (authenticated)
         * request.
         * Maps to using `uri="http://acs.amazonaws.com/groups/global/AuthenticatedUsers"` value for `x-amz-grant-*`
         * header ([bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon S3-compatible HTTP API).
         * 
* * GRANT_TYPE_ALL_AUTHENTICATED_USERS = 2; */ GRANT_TYPE_ALL_AUTHENTICATED_USERS(2), /** *
         * Grantees are all internet users. Access permission to this group allows anyone in the world access to the
         * resource via signed (authenticated) or unsigned (anonymous) requests.
         * Maps to using `uri="http://acs.amazonaws.com/groups/global/AllUsers"` value for `x-amz-grant-*` header
         * ([bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon S3-compatible HTTP API).
         * 
* * GRANT_TYPE_ALL_USERS = 3; */ GRANT_TYPE_ALL_USERS(3), UNRECOGNIZED(-1), ; /** * GRANT_TYPE_UNSPECIFIED = 0; */ public static final int GRANT_TYPE_UNSPECIFIED_VALUE = 0; /** *
         * A grantee is an [account on the platform](/docs/iam/concepts/#accounts).
         * For this grantee type, you need to specify the user ID in [Bucket.acl.grants.grantee_id] field. To get user ID, see
         * [instruction](/docs/iam/operations/users/get).
         * Maps to using `id="*"` value for `x-amz-grant-*` header ([bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput)
         * method of Amazon S3-compatible HTTP API).
         * 
* * GRANT_TYPE_ACCOUNT = 1; */ public static final int GRANT_TYPE_ACCOUNT_VALUE = 1; /** *
         * Grantees are all authenticated users, both from your clouds and other users' clouds. Access
         * permission to this group allows any account on the platform to access the resource via a signed (authenticated)
         * request.
         * Maps to using `uri="http://acs.amazonaws.com/groups/global/AuthenticatedUsers"` value for `x-amz-grant-*`
         * header ([bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon S3-compatible HTTP API).
         * 
* * GRANT_TYPE_ALL_AUTHENTICATED_USERS = 2; */ public static final int GRANT_TYPE_ALL_AUTHENTICATED_USERS_VALUE = 2; /** *
         * Grantees are all internet users. Access permission to this group allows anyone in the world access to the
         * resource via signed (authenticated) or unsigned (anonymous) requests.
         * Maps to using `uri="http://acs.amazonaws.com/groups/global/AllUsers"` value for `x-amz-grant-*` header
         * ([bucketPutAcl](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon S3-compatible HTTP API).
         * 
* * GRANT_TYPE_ALL_USERS = 3; */ public static final int GRANT_TYPE_ALL_USERS_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static GrantType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static GrantType forNumber(int value) { switch (value) { case 0: return GRANT_TYPE_UNSPECIFIED; case 1: return GRANT_TYPE_ACCOUNT; case 2: return GRANT_TYPE_ALL_AUTHENTICATED_USERS; case 3: return GRANT_TYPE_ALL_USERS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< GrantType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public GrantType findValueByNumber(int number) { return GrantType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.getDescriptor().getEnumTypes().get(1); } private static final GrantType[] VALUES = values(); public static GrantType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private GrantType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.storage.v1.ACL.Grant.GrantType) } public static final int PERMISSION_FIELD_NUMBER = 1; private int permission_; /** *
       * Permission granted by the grant.
       * 
* * .yandex.cloud.storage.v1.ACL.Grant.Permission permission = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for permission. */ @java.lang.Override public int getPermissionValue() { return permission_; } /** *
       * Permission granted by the grant.
       * 
* * .yandex.cloud.storage.v1.ACL.Grant.Permission permission = 1 [(.yandex.cloud.required) = true]; * @return The permission. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission getPermission() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission result = yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission.valueOf(permission_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission.UNRECOGNIZED : result; } public static final int GRANT_TYPE_FIELD_NUMBER = 2; private int grantType_; /** *
       * The grantee type for the grant.
       * 
* * .yandex.cloud.storage.v1.ACL.Grant.GrantType grant_type = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for grantType. */ @java.lang.Override public int getGrantTypeValue() { return grantType_; } /** *
       * The grantee type for the grant.
       * 
* * .yandex.cloud.storage.v1.ACL.Grant.GrantType grant_type = 2 [(.yandex.cloud.required) = true]; * @return The grantType. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType getGrantType() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType result = yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType.valueOf(grantType_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType.UNRECOGNIZED : result; } public static final int GRANTEE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object granteeId_; /** *
       * ID of the account who is a grantee. Required when the [grant_type] is `GRANT_TYPE_ACCOUNT`.
       * 
* * string grantee_id = 3; * @return The granteeId. */ @java.lang.Override public java.lang.String getGranteeId() { java.lang.Object ref = granteeId_; 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(); granteeId_ = s; return s; } } /** *
       * ID of the account who is a grantee. Required when the [grant_type] is `GRANT_TYPE_ACCOUNT`.
       * 
* * string grantee_id = 3; * @return The bytes for granteeId. */ @java.lang.Override public com.google.protobuf.ByteString getGranteeIdBytes() { java.lang.Object ref = granteeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); granteeId_ = 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 (permission_ != yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission.PERMISSION_UNSPECIFIED.getNumber()) { output.writeEnum(1, permission_); } if (grantType_ != yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType.GRANT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, grantType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granteeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, granteeId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (permission_ != yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission.PERMISSION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, permission_); } if (grantType_ != yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType.GRANT_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, grantType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granteeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, granteeId_); } 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.storage.v1.BucketOuterClass.ACL.Grant)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant other = (yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant) obj; if (permission_ != other.permission_) return false; if (grantType_ != other.grantType_) return false; if (!getGranteeId() .equals(other.getGranteeId())) 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) + PERMISSION_FIELD_NUMBER; hash = (53 * hash) + permission_; hash = (37 * hash) + GRANT_TYPE_FIELD_NUMBER; hash = (53 * hash) + grantType_; hash = (37 * hash) + GRANTEE_ID_FIELD_NUMBER; hash = (53 * hash) + getGranteeId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant 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.storage.v1.BucketOuterClass.ACL.Grant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant 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.storage.v1.BucketOuterClass.ACL.Grant parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant 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.storage.v1.BucketOuterClass.ACL.Grant parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant 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.storage.v1.BucketOuterClass.ACL.Grant parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant 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.storage.v1.BucketOuterClass.ACL.Grant 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; } /** *
       * A grant resource, used to specify the permission granted and the grantee.
       * 
* * Protobuf type {@code yandex.cloud.storage.v1.ACL.Grant} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.ACL.Grant) yandex.cloud.api.storage.v1.BucketOuterClass.ACL.GrantOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_Grant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_Grant_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.class, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.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(); permission_ = 0; grantType_ = 0; granteeId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_Grant_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant build() { yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant result = new yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant(this); result.permission_ = permission_; result.grantType_ = grantType_; result.granteeId_ = granteeId_; 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.storage.v1.BucketOuterClass.ACL.Grant) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.getDefaultInstance()) return this; if (other.permission_ != 0) { setPermissionValue(other.getPermissionValue()); } if (other.grantType_ != 0) { setGrantTypeValue(other.getGrantTypeValue()); } if (!other.getGranteeId().isEmpty()) { granteeId_ = other.granteeId_; 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.storage.v1.BucketOuterClass.ACL.Grant parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int permission_ = 0; /** *
         * Permission granted by the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.Permission permission = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for permission. */ @java.lang.Override public int getPermissionValue() { return permission_; } /** *
         * Permission granted by the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.Permission permission = 1 [(.yandex.cloud.required) = true]; * @param value The enum numeric value on the wire for permission to set. * @return This builder for chaining. */ public Builder setPermissionValue(int value) { permission_ = value; onChanged(); return this; } /** *
         * Permission granted by the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.Permission permission = 1 [(.yandex.cloud.required) = true]; * @return The permission. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission getPermission() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission result = yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission.valueOf(permission_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission.UNRECOGNIZED : result; } /** *
         * Permission granted by the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.Permission permission = 1 [(.yandex.cloud.required) = true]; * @param value The permission to set. * @return This builder for chaining. */ public Builder setPermission(yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Permission value) { if (value == null) { throw new NullPointerException(); } permission_ = value.getNumber(); onChanged(); return this; } /** *
         * Permission granted by the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.Permission permission = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearPermission() { permission_ = 0; onChanged(); return this; } private int grantType_ = 0; /** *
         * The grantee type for the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.GrantType grant_type = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for grantType. */ @java.lang.Override public int getGrantTypeValue() { return grantType_; } /** *
         * The grantee type for the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.GrantType grant_type = 2 [(.yandex.cloud.required) = true]; * @param value The enum numeric value on the wire for grantType to set. * @return This builder for chaining. */ public Builder setGrantTypeValue(int value) { grantType_ = value; onChanged(); return this; } /** *
         * The grantee type for the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.GrantType grant_type = 2 [(.yandex.cloud.required) = true]; * @return The grantType. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType getGrantType() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType result = yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType.valueOf(grantType_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType.UNRECOGNIZED : result; } /** *
         * The grantee type for the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.GrantType grant_type = 2 [(.yandex.cloud.required) = true]; * @param value The grantType to set. * @return This builder for chaining. */ public Builder setGrantType(yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.GrantType value) { if (value == null) { throw new NullPointerException(); } grantType_ = value.getNumber(); onChanged(); return this; } /** *
         * The grantee type for the grant.
         * 
* * .yandex.cloud.storage.v1.ACL.Grant.GrantType grant_type = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearGrantType() { grantType_ = 0; onChanged(); return this; } private java.lang.Object granteeId_ = ""; /** *
         * ID of the account who is a grantee. Required when the [grant_type] is `GRANT_TYPE_ACCOUNT`.
         * 
* * string grantee_id = 3; * @return The granteeId. */ public java.lang.String getGranteeId() { java.lang.Object ref = granteeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); granteeId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the account who is a grantee. Required when the [grant_type] is `GRANT_TYPE_ACCOUNT`.
         * 
* * string grantee_id = 3; * @return The bytes for granteeId. */ public com.google.protobuf.ByteString getGranteeIdBytes() { java.lang.Object ref = granteeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); granteeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the account who is a grantee. Required when the [grant_type] is `GRANT_TYPE_ACCOUNT`.
         * 
* * string grantee_id = 3; * @param value The granteeId to set. * @return This builder for chaining. */ public Builder setGranteeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } granteeId_ = value; onChanged(); return this; } /** *
         * ID of the account who is a grantee. Required when the [grant_type] is `GRANT_TYPE_ACCOUNT`.
         * 
* * string grantee_id = 3; * @return This builder for chaining. */ public Builder clearGranteeId() { granteeId_ = getDefaultInstance().getGranteeId(); onChanged(); return this; } /** *
         * ID of the account who is a grantee. Required when the [grant_type] is `GRANT_TYPE_ACCOUNT`.
         * 
* * string grantee_id = 3; * @param value The bytes for granteeId to set. * @return This builder for chaining. */ public Builder setGranteeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); granteeId_ = 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.storage.v1.ACL.Grant) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.ACL.Grant) private static final yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Grant parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Grant(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.storage.v1.BucketOuterClass.ACL.Grant getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int GRANTS_FIELD_NUMBER = 1; private java.util.List grants_; /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ @java.lang.Override public java.util.List getGrantsList() { return grants_; } /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ @java.lang.Override public java.util.List getGrantsOrBuilderList() { return grants_; } /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ @java.lang.Override public int getGrantsCount() { return grants_.size(); } /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant getGrants(int index) { return grants_.get(index); } /** *
     * List of permissions granted and the grantees.
     * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.GrantOrBuilder getGrantsOrBuilder( int index) { return grants_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < grants_.size(); i++) { output.writeMessage(1, grants_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < grants_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, grants_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.storage.v1.BucketOuterClass.ACL)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.ACL other = (yandex.cloud.api.storage.v1.BucketOuterClass.ACL) obj; if (!getGrantsList() .equals(other.getGrantsList())) 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(); if (getGrantsCount() > 0) { hash = (37 * hash) + GRANTS_FIELD_NUMBER; hash = (53 * hash) + getGrantsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL 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.storage.v1.BucketOuterClass.ACL parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL 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.storage.v1.BucketOuterClass.ACL parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL 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.storage.v1.BucketOuterClass.ACL parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL 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.storage.v1.BucketOuterClass.ACL parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL 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.storage.v1.BucketOuterClass.ACL prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.ACL} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.ACL) yandex.cloud.api.storage.v1.BucketOuterClass.ACLOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.ACL.class, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.ACL.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGrantsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (grantsBuilder_ == null) { grants_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { grantsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ACL_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.ACL.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL build() { yandex.cloud.api.storage.v1.BucketOuterClass.ACL result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ACL buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.ACL result = new yandex.cloud.api.storage.v1.BucketOuterClass.ACL(this); int from_bitField0_ = bitField0_; if (grantsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { grants_ = java.util.Collections.unmodifiableList(grants_); bitField0_ = (bitField0_ & ~0x00000001); } result.grants_ = grants_; } else { result.grants_ = grantsBuilder_.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.storage.v1.BucketOuterClass.ACL) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.ACL)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.ACL other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.ACL.getDefaultInstance()) return this; if (grantsBuilder_ == null) { if (!other.grants_.isEmpty()) { if (grants_.isEmpty()) { grants_ = other.grants_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGrantsIsMutable(); grants_.addAll(other.grants_); } onChanged(); } } else { if (!other.grants_.isEmpty()) { if (grantsBuilder_.isEmpty()) { grantsBuilder_.dispose(); grantsBuilder_ = null; grants_ = other.grants_; bitField0_ = (bitField0_ & ~0x00000001); grantsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGrantsFieldBuilder() : null; } else { grantsBuilder_.addAllMessages(other.grants_); } } } 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.storage.v1.BucketOuterClass.ACL parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.ACL) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List grants_ = java.util.Collections.emptyList(); private void ensureGrantsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { grants_ = new java.util.ArrayList(grants_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.GrantOrBuilder> grantsBuilder_; /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public java.util.List getGrantsList() { if (grantsBuilder_ == null) { return java.util.Collections.unmodifiableList(grants_); } else { return grantsBuilder_.getMessageList(); } } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public int getGrantsCount() { if (grantsBuilder_ == null) { return grants_.size(); } else { return grantsBuilder_.getCount(); } } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant getGrants(int index) { if (grantsBuilder_ == null) { return grants_.get(index); } else { return grantsBuilder_.getMessage(index); } } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public Builder setGrants( int index, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant value) { if (grantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGrantsIsMutable(); grants_.set(index, value); onChanged(); } else { grantsBuilder_.setMessage(index, value); } return this; } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public Builder setGrants( int index, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder builderForValue) { if (grantsBuilder_ == null) { ensureGrantsIsMutable(); grants_.set(index, builderForValue.build()); onChanged(); } else { grantsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public Builder addGrants(yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant value) { if (grantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGrantsIsMutable(); grants_.add(value); onChanged(); } else { grantsBuilder_.addMessage(value); } return this; } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public Builder addGrants( int index, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant value) { if (grantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGrantsIsMutable(); grants_.add(index, value); onChanged(); } else { grantsBuilder_.addMessage(index, value); } return this; } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public Builder addGrants( yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder builderForValue) { if (grantsBuilder_ == null) { ensureGrantsIsMutable(); grants_.add(builderForValue.build()); onChanged(); } else { grantsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public Builder addGrants( int index, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder builderForValue) { if (grantsBuilder_ == null) { ensureGrantsIsMutable(); grants_.add(index, builderForValue.build()); onChanged(); } else { grantsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public Builder addAllGrants( java.lang.Iterable values) { if (grantsBuilder_ == null) { ensureGrantsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, grants_); onChanged(); } else { grantsBuilder_.addAllMessages(values); } return this; } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public Builder clearGrants() { if (grantsBuilder_ == null) { grants_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { grantsBuilder_.clear(); } return this; } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public Builder removeGrants(int index) { if (grantsBuilder_ == null) { ensureGrantsIsMutable(); grants_.remove(index); onChanged(); } else { grantsBuilder_.remove(index); } return this; } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder getGrantsBuilder( int index) { return getGrantsFieldBuilder().getBuilder(index); } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.GrantOrBuilder getGrantsOrBuilder( int index) { if (grantsBuilder_ == null) { return grants_.get(index); } else { return grantsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public java.util.List getGrantsOrBuilderList() { if (grantsBuilder_ != null) { return grantsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(grants_); } } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder addGrantsBuilder() { return getGrantsFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.getDefaultInstance()); } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder addGrantsBuilder( int index) { return getGrantsFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.getDefaultInstance()); } /** *
       * List of permissions granted and the grantees.
       * 
* * repeated .yandex.cloud.storage.v1.ACL.Grant grants = 1; */ public java.util.List getGrantsBuilderList() { return getGrantsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.GrantOrBuilder> getGrantsFieldBuilder() { if (grantsBuilder_ == null) { grantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.Grant.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ACL.GrantOrBuilder>( grants_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); grants_ = null; } return grantsBuilder_; } @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.storage.v1.ACL) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.ACL) private static final yandex.cloud.api.storage.v1.BucketOuterClass.ACL DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.ACL(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ACL getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ACL parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ACL(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.storage.v1.BucketOuterClass.ACL getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AnonymousAccessFlagsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.AnonymousAccessFlags) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue read = 1; * @return Whether the read field is set. */ boolean hasRead(); /** *
     * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue read = 1; * @return The read. */ com.google.protobuf.BoolValue getRead(); /** *
     * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue read = 1; */ com.google.protobuf.BoolValueOrBuilder getReadOrBuilder(); /** *
     * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue list = 2; * @return Whether the list field is set. */ boolean hasList(); /** *
     * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue list = 2; * @return The list. */ com.google.protobuf.BoolValue getList(); /** *
     * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue list = 2; */ com.google.protobuf.BoolValueOrBuilder getListOrBuilder(); /** *
     * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
     * [static website hosting](/docs/storage/concepts/hosting), and
     * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
     * 
* * .google.protobuf.BoolValue config_read = 3; * @return Whether the configRead field is set. */ boolean hasConfigRead(); /** *
     * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
     * [static website hosting](/docs/storage/concepts/hosting), and
     * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
     * 
* * .google.protobuf.BoolValue config_read = 3; * @return The configRead. */ com.google.protobuf.BoolValue getConfigRead(); /** *
     * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
     * [static website hosting](/docs/storage/concepts/hosting), and
     * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
     * 
* * .google.protobuf.BoolValue config_read = 3; */ com.google.protobuf.BoolValueOrBuilder getConfigReadOrBuilder(); } /** * Protobuf type {@code yandex.cloud.storage.v1.AnonymousAccessFlags} */ public static final class AnonymousAccessFlags extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.AnonymousAccessFlags) AnonymousAccessFlagsOrBuilder { private static final long serialVersionUID = 0L; // Use AnonymousAccessFlags.newBuilder() to construct. private AnonymousAccessFlags(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AnonymousAccessFlags() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AnonymousAccessFlags(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AnonymousAccessFlags( 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: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (read_ != null) { subBuilder = read_.toBuilder(); } read_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(read_); read_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (list_ != null) { subBuilder = list_.toBuilder(); } list_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(list_); list_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (configRead_ != null) { subBuilder = configRead_.toBuilder(); } configRead_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configRead_); configRead_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.class, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder.class); } public static final int READ_FIELD_NUMBER = 1; private com.google.protobuf.BoolValue read_; /** *
     * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue read = 1; * @return Whether the read field is set. */ @java.lang.Override public boolean hasRead() { return read_ != null; } /** *
     * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue read = 1; * @return The read. */ @java.lang.Override public com.google.protobuf.BoolValue getRead() { return read_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : read_; } /** *
     * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue read = 1; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getReadOrBuilder() { return getRead(); } public static final int LIST_FIELD_NUMBER = 2; private com.google.protobuf.BoolValue list_; /** *
     * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue list = 2; * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return list_ != null; } /** *
     * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue list = 2; * @return The list. */ @java.lang.Override public com.google.protobuf.BoolValue getList() { return list_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : list_; } /** *
     * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
     * 
* * .google.protobuf.BoolValue list = 2; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getListOrBuilder() { return getList(); } public static final int CONFIG_READ_FIELD_NUMBER = 3; private com.google.protobuf.BoolValue configRead_; /** *
     * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
     * [static website hosting](/docs/storage/concepts/hosting), and
     * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
     * 
* * .google.protobuf.BoolValue config_read = 3; * @return Whether the configRead field is set. */ @java.lang.Override public boolean hasConfigRead() { return configRead_ != null; } /** *
     * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
     * [static website hosting](/docs/storage/concepts/hosting), and
     * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
     * 
* * .google.protobuf.BoolValue config_read = 3; * @return The configRead. */ @java.lang.Override public com.google.protobuf.BoolValue getConfigRead() { return configRead_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : configRead_; } /** *
     * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
     * [static website hosting](/docs/storage/concepts/hosting), and
     * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
     * 
* * .google.protobuf.BoolValue config_read = 3; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getConfigReadOrBuilder() { return getConfigRead(); } 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 (read_ != null) { output.writeMessage(1, getRead()); } if (list_ != null) { output.writeMessage(2, getList()); } if (configRead_ != null) { output.writeMessage(3, getConfigRead()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (read_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRead()); } if (list_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getList()); } if (configRead_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getConfigRead()); } 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.storage.v1.BucketOuterClass.AnonymousAccessFlags)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags other = (yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags) obj; if (hasRead() != other.hasRead()) return false; if (hasRead()) { if (!getRead() .equals(other.getRead())) return false; } if (hasList() != other.hasList()) return false; if (hasList()) { if (!getList() .equals(other.getList())) return false; } if (hasConfigRead() != other.hasConfigRead()) return false; if (hasConfigRead()) { if (!getConfigRead() .equals(other.getConfigRead())) 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(); if (hasRead()) { hash = (37 * hash) + READ_FIELD_NUMBER; hash = (53 * hash) + getRead().hashCode(); } if (hasList()) { hash = (37 * hash) + LIST_FIELD_NUMBER; hash = (53 * hash) + getList().hashCode(); } if (hasConfigRead()) { hash = (37 * hash) + CONFIG_READ_FIELD_NUMBER; hash = (53 * hash) + getConfigRead().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags 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.storage.v1.BucketOuterClass.AnonymousAccessFlags parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags 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.storage.v1.BucketOuterClass.AnonymousAccessFlags parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags 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.storage.v1.BucketOuterClass.AnonymousAccessFlags parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags 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.storage.v1.BucketOuterClass.AnonymousAccessFlags parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags 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.storage.v1.BucketOuterClass.AnonymousAccessFlags prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.AnonymousAccessFlags} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.AnonymousAccessFlags) yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.class, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.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(); if (readBuilder_ == null) { read_ = null; } else { read_ = null; readBuilder_ = null; } if (listBuilder_ == null) { list_ = null; } else { list_ = null; listBuilder_ = null; } if (configReadBuilder_ == null) { configRead_ = null; } else { configRead_ = null; configReadBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags build() { yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags result = new yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags(this); if (readBuilder_ == null) { result.read_ = read_; } else { result.read_ = readBuilder_.build(); } if (listBuilder_ == null) { result.list_ = list_; } else { result.list_ = listBuilder_.build(); } if (configReadBuilder_ == null) { result.configRead_ = configRead_; } else { result.configRead_ = configReadBuilder_.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.storage.v1.BucketOuterClass.AnonymousAccessFlags) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.getDefaultInstance()) return this; if (other.hasRead()) { mergeRead(other.getRead()); } if (other.hasList()) { mergeList(other.getList()); } if (other.hasConfigRead()) { mergeConfigRead(other.getConfigRead()); } 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.storage.v1.BucketOuterClass.AnonymousAccessFlags parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.BoolValue read_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> readBuilder_; /** *
       * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue read = 1; * @return Whether the read field is set. */ public boolean hasRead() { return readBuilder_ != null || read_ != null; } /** *
       * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue read = 1; * @return The read. */ public com.google.protobuf.BoolValue getRead() { if (readBuilder_ == null) { return read_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : read_; } else { return readBuilder_.getMessage(); } } /** *
       * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue read = 1; */ public Builder setRead(com.google.protobuf.BoolValue value) { if (readBuilder_ == null) { if (value == null) { throw new NullPointerException(); } read_ = value; onChanged(); } else { readBuilder_.setMessage(value); } return this; } /** *
       * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue read = 1; */ public Builder setRead( com.google.protobuf.BoolValue.Builder builderForValue) { if (readBuilder_ == null) { read_ = builderForValue.build(); onChanged(); } else { readBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue read = 1; */ public Builder mergeRead(com.google.protobuf.BoolValue value) { if (readBuilder_ == null) { if (read_ != null) { read_ = com.google.protobuf.BoolValue.newBuilder(read_).mergeFrom(value).buildPartial(); } else { read_ = value; } onChanged(); } else { readBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue read = 1; */ public Builder clearRead() { if (readBuilder_ == null) { read_ = null; onChanged(); } else { read_ = null; readBuilder_ = null; } return this; } /** *
       * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue read = 1; */ public com.google.protobuf.BoolValue.Builder getReadBuilder() { onChanged(); return getReadFieldBuilder().getBuilder(); } /** *
       * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue read = 1; */ public com.google.protobuf.BoolValueOrBuilder getReadOrBuilder() { if (readBuilder_ != null) { return readBuilder_.getMessageOrBuilder(); } else { return read_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : read_; } } /** *
       * Specifies whether public (anonymous) access to read objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue read = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getReadFieldBuilder() { if (readBuilder_ == null) { readBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getRead(), getParentForChildren(), isClean()); read_ = null; } return readBuilder_; } private com.google.protobuf.BoolValue list_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> listBuilder_; /** *
       * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue list = 2; * @return Whether the list field is set. */ public boolean hasList() { return listBuilder_ != null || list_ != null; } /** *
       * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue list = 2; * @return The list. */ public com.google.protobuf.BoolValue getList() { if (listBuilder_ == null) { return list_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : list_; } else { return listBuilder_.getMessage(); } } /** *
       * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue list = 2; */ public Builder setList(com.google.protobuf.BoolValue value) { if (listBuilder_ == null) { if (value == null) { throw new NullPointerException(); } list_ = value; onChanged(); } else { listBuilder_.setMessage(value); } return this; } /** *
       * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue list = 2; */ public Builder setList( com.google.protobuf.BoolValue.Builder builderForValue) { if (listBuilder_ == null) { list_ = builderForValue.build(); onChanged(); } else { listBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue list = 2; */ public Builder mergeList(com.google.protobuf.BoolValue value) { if (listBuilder_ == null) { if (list_ != null) { list_ = com.google.protobuf.BoolValue.newBuilder(list_).mergeFrom(value).buildPartial(); } else { list_ = value; } onChanged(); } else { listBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue list = 2; */ public Builder clearList() { if (listBuilder_ == null) { list_ = null; onChanged(); } else { list_ = null; listBuilder_ = null; } return this; } /** *
       * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue list = 2; */ public com.google.protobuf.BoolValue.Builder getListBuilder() { onChanged(); return getListFieldBuilder().getBuilder(); } /** *
       * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue list = 2; */ public com.google.protobuf.BoolValueOrBuilder getListOrBuilder() { if (listBuilder_ != null) { return listBuilder_.getMessageOrBuilder(); } else { return list_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : list_; } } /** *
       * Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
       * 
* * .google.protobuf.BoolValue list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getListFieldBuilder() { if (listBuilder_ == null) { listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getList(), getParentForChildren(), isClean()); list_ = null; } return listBuilder_; } private com.google.protobuf.BoolValue configRead_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> configReadBuilder_; /** *
       * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
       * [static website hosting](/docs/storage/concepts/hosting), and
       * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
       * 
* * .google.protobuf.BoolValue config_read = 3; * @return Whether the configRead field is set. */ public boolean hasConfigRead() { return configReadBuilder_ != null || configRead_ != null; } /** *
       * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
       * [static website hosting](/docs/storage/concepts/hosting), and
       * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
       * 
* * .google.protobuf.BoolValue config_read = 3; * @return The configRead. */ public com.google.protobuf.BoolValue getConfigRead() { if (configReadBuilder_ == null) { return configRead_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : configRead_; } else { return configReadBuilder_.getMessage(); } } /** *
       * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
       * [static website hosting](/docs/storage/concepts/hosting), and
       * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
       * 
* * .google.protobuf.BoolValue config_read = 3; */ public Builder setConfigRead(com.google.protobuf.BoolValue value) { if (configReadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configRead_ = value; onChanged(); } else { configReadBuilder_.setMessage(value); } return this; } /** *
       * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
       * [static website hosting](/docs/storage/concepts/hosting), and
       * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
       * 
* * .google.protobuf.BoolValue config_read = 3; */ public Builder setConfigRead( com.google.protobuf.BoolValue.Builder builderForValue) { if (configReadBuilder_ == null) { configRead_ = builderForValue.build(); onChanged(); } else { configReadBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
       * [static website hosting](/docs/storage/concepts/hosting), and
       * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
       * 
* * .google.protobuf.BoolValue config_read = 3; */ public Builder mergeConfigRead(com.google.protobuf.BoolValue value) { if (configReadBuilder_ == null) { if (configRead_ != null) { configRead_ = com.google.protobuf.BoolValue.newBuilder(configRead_).mergeFrom(value).buildPartial(); } else { configRead_ = value; } onChanged(); } else { configReadBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
       * [static website hosting](/docs/storage/concepts/hosting), and
       * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
       * 
* * .google.protobuf.BoolValue config_read = 3; */ public Builder clearConfigRead() { if (configReadBuilder_ == null) { configRead_ = null; onChanged(); } else { configRead_ = null; configReadBuilder_ = null; } return this; } /** *
       * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
       * [static website hosting](/docs/storage/concepts/hosting), and
       * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
       * 
* * .google.protobuf.BoolValue config_read = 3; */ public com.google.protobuf.BoolValue.Builder getConfigReadBuilder() { onChanged(); return getConfigReadFieldBuilder().getBuilder(); } /** *
       * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
       * [static website hosting](/docs/storage/concepts/hosting), and
       * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
       * 
* * .google.protobuf.BoolValue config_read = 3; */ public com.google.protobuf.BoolValueOrBuilder getConfigReadOrBuilder() { if (configReadBuilder_ != null) { return configReadBuilder_.getMessageOrBuilder(); } else { return configRead_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : configRead_; } } /** *
       * Specifies whether public (anonymous) access to read [CORS](/docs/storage/concepts/cors),
       * [static website hosting](/docs/storage/concepts/hosting), and
       * [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
       * 
* * .google.protobuf.BoolValue config_read = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getConfigReadFieldBuilder() { if (configReadBuilder_ == null) { configReadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getConfigRead(), getParentForChildren(), isClean()); configRead_ = null; } return configReadBuilder_; } @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.storage.v1.AnonymousAccessFlags) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.AnonymousAccessFlags) private static final yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AnonymousAccessFlags parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AnonymousAccessFlags(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.storage.v1.BucketOuterClass.AnonymousAccessFlags getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CorsRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.CorsRule) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the CORS rule.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the CORS rule.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return A list containing the allowedMethods. */ java.util.List getAllowedMethodsList(); /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return The count of allowedMethods. */ int getAllowedMethodsCount(); /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The allowedMethods at the given index. */ yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method getAllowedMethods(int index); /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return A list containing the enum numeric values on the wire for allowedMethods. */ java.util.List getAllowedMethodsValueList(); /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The enum numeric value on the wire of allowedMethods at the given index. */ int getAllowedMethodsValue(int index); /** *
     * List of HTTP headers allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
     * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
     * `Access-Control-Allow-Headers` header of the response.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
     * 
* * repeated string allowed_headers = 3; * @return A list containing the allowedHeaders. */ java.util.List getAllowedHeadersList(); /** *
     * List of HTTP headers allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
     * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
     * `Access-Control-Allow-Headers` header of the response.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
     * 
* * repeated string allowed_headers = 3; * @return The count of allowedHeaders. */ int getAllowedHeadersCount(); /** *
     * List of HTTP headers allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
     * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
     * `Access-Control-Allow-Headers` header of the response.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
     * 
* * repeated string allowed_headers = 3; * @param index The index of the element to return. * @return The allowedHeaders at the given index. */ java.lang.String getAllowedHeaders(int index); /** *
     * List of HTTP headers allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
     * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
     * `Access-Control-Allow-Headers` header of the response.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
     * 
* * repeated string allowed_headers = 3; * @param index The index of the value to return. * @return The bytes of the allowedHeaders at the given index. */ com.google.protobuf.ByteString getAllowedHeadersBytes(int index); /** *
     * List of request origins allowed by the CORS rule.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
     * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @return A list containing the allowedOrigins. */ java.util.List getAllowedOriginsList(); /** *
     * List of request origins allowed by the CORS rule.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
     * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @return The count of allowedOrigins. */ int getAllowedOriginsCount(); /** *
     * List of request origins allowed by the CORS rule.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
     * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param index The index of the element to return. * @return The allowedOrigins at the given index. */ java.lang.String getAllowedOrigins(int index); /** *
     * List of request origins allowed by the CORS rule.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
     * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param index The index of the value to return. * @return The bytes of the allowedOrigins at the given index. */ com.google.protobuf.ByteString getAllowedOriginsBytes(int index); /** *
     * List of headers contained in responses to CORS requests that can be accessed by applications.
     * 
* * repeated string expose_headers = 5; * @return A list containing the exposeHeaders. */ java.util.List getExposeHeadersList(); /** *
     * List of headers contained in responses to CORS requests that can be accessed by applications.
     * 
* * repeated string expose_headers = 5; * @return The count of exposeHeaders. */ int getExposeHeadersCount(); /** *
     * List of headers contained in responses to CORS requests that can be accessed by applications.
     * 
* * repeated string expose_headers = 5; * @param index The index of the element to return. * @return The exposeHeaders at the given index. */ java.lang.String getExposeHeaders(int index); /** *
     * List of headers contained in responses to CORS requests that can be accessed by applications.
     * 
* * repeated string expose_headers = 5; * @param index The index of the value to return. * @return The bytes of the exposeHeaders at the given index. */ com.google.protobuf.ByteString getExposeHeadersBytes(int index); /** *
     * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
     * object requested, the HTTP method, and the origin.
     * 
* * .google.protobuf.Int64Value max_age_seconds = 6; * @return Whether the maxAgeSeconds field is set. */ boolean hasMaxAgeSeconds(); /** *
     * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
     * object requested, the HTTP method, and the origin.
     * 
* * .google.protobuf.Int64Value max_age_seconds = 6; * @return The maxAgeSeconds. */ com.google.protobuf.Int64Value getMaxAgeSeconds(); /** *
     * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
     * object requested, the HTTP method, and the origin.
     * 
* * .google.protobuf.Int64Value max_age_seconds = 6; */ com.google.protobuf.Int64ValueOrBuilder getMaxAgeSecondsOrBuilder(); } /** *
   * A CORS rule resource.
   * For details about the concept, see [documentation](/docs/storage/concepts/cors).
   * 
* * Protobuf type {@code yandex.cloud.storage.v1.CorsRule} */ public static final class CorsRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.CorsRule) CorsRuleOrBuilder { private static final long serialVersionUID = 0L; // Use CorsRule.newBuilder() to construct. private CorsRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CorsRule() { id_ = ""; allowedMethods_ = java.util.Collections.emptyList(); allowedHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; allowedOrigins_ = com.google.protobuf.LazyStringArrayList.EMPTY; exposeHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CorsRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CorsRule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 16: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { allowedMethods_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } allowedMethods_.add(rawValue); break; } case 18: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { allowedMethods_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } allowedMethods_.add(rawValue); } input.popLimit(oldLimit); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { allowedHeaders_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } allowedHeaders_.add(s); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { allowedOrigins_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } allowedOrigins_.add(s); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000008) != 0)) { exposeHeaders_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } exposeHeaders_.add(s); break; } case 50: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (maxAgeSeconds_ != null) { subBuilder = maxAgeSeconds_.toBuilder(); } maxAgeSeconds_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxAgeSeconds_); maxAgeSeconds_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedMethods_ = java.util.Collections.unmodifiableList(allowedMethods_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { allowedHeaders_ = allowedHeaders_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { allowedOrigins_ = allowedOrigins_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) != 0)) { exposeHeaders_ = exposeHeaders_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CorsRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CorsRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.class, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder.class); } /** *
     * List of HTTP methods that are allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against the
     * list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * Protobuf enum {@code yandex.cloud.storage.v1.CorsRule.Method} */ public enum Method implements com.google.protobuf.ProtocolMessageEnum { /** * METHOD_UNSPECIFIED = 0; */ METHOD_UNSPECIFIED(0), /** *
       * HTTP `GET` method.
       * 
* * METHOD_GET = 1; */ METHOD_GET(1), /** *
       * HTTP `HEAD` method.
       * 
* * METHOD_HEAD = 2; */ METHOD_HEAD(2), /** *
       * HTTP `POST` method.
       * 
* * METHOD_POST = 3; */ METHOD_POST(3), /** *
       * HTTP `PUT` method.
       * 
* * METHOD_PUT = 4; */ METHOD_PUT(4), /** *
       * HTTP `DELETE` method.
       * 
* * METHOD_DELETE = 5; */ METHOD_DELETE(5), UNRECOGNIZED(-1), ; /** * METHOD_UNSPECIFIED = 0; */ public static final int METHOD_UNSPECIFIED_VALUE = 0; /** *
       * HTTP `GET` method.
       * 
* * METHOD_GET = 1; */ public static final int METHOD_GET_VALUE = 1; /** *
       * HTTP `HEAD` method.
       * 
* * METHOD_HEAD = 2; */ public static final int METHOD_HEAD_VALUE = 2; /** *
       * HTTP `POST` method.
       * 
* * METHOD_POST = 3; */ public static final int METHOD_POST_VALUE = 3; /** *
       * HTTP `PUT` method.
       * 
* * METHOD_PUT = 4; */ public static final int METHOD_PUT_VALUE = 4; /** *
       * HTTP `DELETE` method.
       * 
* * METHOD_DELETE = 5; */ public static final int METHOD_DELETE_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Method valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Method forNumber(int value) { switch (value) { case 0: return METHOD_UNSPECIFIED; case 1: return METHOD_GET; case 2: return METHOD_HEAD; case 3: return METHOD_POST; case 4: return METHOD_PUT; case 5: return METHOD_DELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Method> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Method findValueByNumber(int number) { return Method.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.getDescriptor().getEnumTypes().get(0); } private static final Method[] VALUES = values(); public static Method valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Method(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.storage.v1.CorsRule.Method) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the CORS rule.
     * 
* * 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 CORS rule.
     * 
* * 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; } } public static final int ALLOWED_METHODS_FIELD_NUMBER = 2; private java.util.List allowedMethods_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method> allowedMethods_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method>() { public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method convert(java.lang.Integer from) { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method result = yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method.valueOf(from); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method.UNRECOGNIZED : result; } }; /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return A list containing the allowedMethods. */ @java.lang.Override public java.util.List getAllowedMethodsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method>(allowedMethods_, allowedMethods_converter_); } /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return The count of allowedMethods. */ @java.lang.Override public int getAllowedMethodsCount() { return allowedMethods_.size(); } /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The allowedMethods at the given index. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method getAllowedMethods(int index) { return allowedMethods_converter_.convert(allowedMethods_.get(index)); } /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return A list containing the enum numeric values on the wire for allowedMethods. */ @java.lang.Override public java.util.List getAllowedMethodsValueList() { return allowedMethods_; } /** *
     * List of HTTP methods allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
     * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
     * `Access-Control-Allow-Methods` header of the response.
     * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The enum numeric value on the wire of allowedMethods at the given index. */ @java.lang.Override public int getAllowedMethodsValue(int index) { return allowedMethods_.get(index); } private int allowedMethodsMemoizedSerializedSize; public static final int ALLOWED_HEADERS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList allowedHeaders_; /** *
     * List of HTTP headers allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
     * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
     * `Access-Control-Allow-Headers` header of the response.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
     * 
* * repeated string allowed_headers = 3; * @return A list containing the allowedHeaders. */ public com.google.protobuf.ProtocolStringList getAllowedHeadersList() { return allowedHeaders_; } /** *
     * List of HTTP headers allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
     * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
     * `Access-Control-Allow-Headers` header of the response.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
     * 
* * repeated string allowed_headers = 3; * @return The count of allowedHeaders. */ public int getAllowedHeadersCount() { return allowedHeaders_.size(); } /** *
     * List of HTTP headers allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
     * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
     * `Access-Control-Allow-Headers` header of the response.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
     * 
* * repeated string allowed_headers = 3; * @param index The index of the element to return. * @return The allowedHeaders at the given index. */ public java.lang.String getAllowedHeaders(int index) { return allowedHeaders_.get(index); } /** *
     * List of HTTP headers allowed by the CORS rule.
     * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
     * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
     * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
     * `Access-Control-Allow-Headers` header of the response.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
     * 
* * repeated string allowed_headers = 3; * @param index The index of the value to return. * @return The bytes of the allowedHeaders at the given index. */ public com.google.protobuf.ByteString getAllowedHeadersBytes(int index) { return allowedHeaders_.getByteString(index); } public static final int ALLOWED_ORIGINS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList allowedOrigins_; /** *
     * List of request origins allowed by the CORS rule.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
     * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @return A list containing the allowedOrigins. */ public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { return allowedOrigins_; } /** *
     * List of request origins allowed by the CORS rule.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
     * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @return The count of allowedOrigins. */ public int getAllowedOriginsCount() { return allowedOrigins_.size(); } /** *
     * List of request origins allowed by the CORS rule.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
     * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param index The index of the element to return. * @return The allowedOrigins at the given index. */ public java.lang.String getAllowedOrigins(int index) { return allowedOrigins_.get(index); } /** *
     * List of request origins allowed by the CORS rule.
     * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
     * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
     * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param index The index of the value to return. * @return The bytes of the allowedOrigins at the given index. */ public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { return allowedOrigins_.getByteString(index); } public static final int EXPOSE_HEADERS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList exposeHeaders_; /** *
     * List of headers contained in responses to CORS requests that can be accessed by applications.
     * 
* * repeated string expose_headers = 5; * @return A list containing the exposeHeaders. */ public com.google.protobuf.ProtocolStringList getExposeHeadersList() { return exposeHeaders_; } /** *
     * List of headers contained in responses to CORS requests that can be accessed by applications.
     * 
* * repeated string expose_headers = 5; * @return The count of exposeHeaders. */ public int getExposeHeadersCount() { return exposeHeaders_.size(); } /** *
     * List of headers contained in responses to CORS requests that can be accessed by applications.
     * 
* * repeated string expose_headers = 5; * @param index The index of the element to return. * @return The exposeHeaders at the given index. */ public java.lang.String getExposeHeaders(int index) { return exposeHeaders_.get(index); } /** *
     * List of headers contained in responses to CORS requests that can be accessed by applications.
     * 
* * repeated string expose_headers = 5; * @param index The index of the value to return. * @return The bytes of the exposeHeaders at the given index. */ public com.google.protobuf.ByteString getExposeHeadersBytes(int index) { return exposeHeaders_.getByteString(index); } public static final int MAX_AGE_SECONDS_FIELD_NUMBER = 6; private com.google.protobuf.Int64Value maxAgeSeconds_; /** *
     * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
     * object requested, the HTTP method, and the origin.
     * 
* * .google.protobuf.Int64Value max_age_seconds = 6; * @return Whether the maxAgeSeconds field is set. */ @java.lang.Override public boolean hasMaxAgeSeconds() { return maxAgeSeconds_ != null; } /** *
     * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
     * object requested, the HTTP method, and the origin.
     * 
* * .google.protobuf.Int64Value max_age_seconds = 6; * @return The maxAgeSeconds. */ @java.lang.Override public com.google.protobuf.Int64Value getMaxAgeSeconds() { return maxAgeSeconds_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxAgeSeconds_; } /** *
     * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
     * object requested, the HTTP method, and the origin.
     * 
* * .google.protobuf.Int64Value max_age_seconds = 6; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMaxAgeSecondsOrBuilder() { return getMaxAgeSeconds(); } 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (getAllowedMethodsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(allowedMethodsMemoizedSerializedSize); } for (int i = 0; i < allowedMethods_.size(); i++) { output.writeEnumNoTag(allowedMethods_.get(i)); } for (int i = 0; i < allowedHeaders_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allowedHeaders_.getRaw(i)); } for (int i = 0; i < allowedOrigins_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allowedOrigins_.getRaw(i)); } for (int i = 0; i < exposeHeaders_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, exposeHeaders_.getRaw(i)); } if (maxAgeSeconds_ != null) { output.writeMessage(6, getMaxAgeSeconds()); } 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_); } { int dataSize = 0; for (int i = 0; i < allowedMethods_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(allowedMethods_.get(i)); } size += dataSize; if (!getAllowedMethodsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }allowedMethodsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < allowedHeaders_.size(); i++) { dataSize += computeStringSizeNoTag(allowedHeaders_.getRaw(i)); } size += dataSize; size += 1 * getAllowedHeadersList().size(); } { int dataSize = 0; for (int i = 0; i < allowedOrigins_.size(); i++) { dataSize += computeStringSizeNoTag(allowedOrigins_.getRaw(i)); } size += dataSize; size += 1 * getAllowedOriginsList().size(); } { int dataSize = 0; for (int i = 0; i < exposeHeaders_.size(); i++) { dataSize += computeStringSizeNoTag(exposeHeaders_.getRaw(i)); } size += dataSize; size += 1 * getExposeHeadersList().size(); } if (maxAgeSeconds_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getMaxAgeSeconds()); } 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.storage.v1.BucketOuterClass.CorsRule)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule other = (yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule) obj; if (!getId() .equals(other.getId())) return false; if (!allowedMethods_.equals(other.allowedMethods_)) return false; if (!getAllowedHeadersList() .equals(other.getAllowedHeadersList())) return false; if (!getAllowedOriginsList() .equals(other.getAllowedOriginsList())) return false; if (!getExposeHeadersList() .equals(other.getExposeHeadersList())) return false; if (hasMaxAgeSeconds() != other.hasMaxAgeSeconds()) return false; if (hasMaxAgeSeconds()) { if (!getMaxAgeSeconds() .equals(other.getMaxAgeSeconds())) 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(); if (getAllowedMethodsCount() > 0) { hash = (37 * hash) + ALLOWED_METHODS_FIELD_NUMBER; hash = (53 * hash) + allowedMethods_.hashCode(); } if (getAllowedHeadersCount() > 0) { hash = (37 * hash) + ALLOWED_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getAllowedHeadersList().hashCode(); } if (getAllowedOriginsCount() > 0) { hash = (37 * hash) + ALLOWED_ORIGINS_FIELD_NUMBER; hash = (53 * hash) + getAllowedOriginsList().hashCode(); } if (getExposeHeadersCount() > 0) { hash = (37 * hash) + EXPOSE_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getExposeHeadersList().hashCode(); } if (hasMaxAgeSeconds()) { hash = (37 * hash) + MAX_AGE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getMaxAgeSeconds().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule 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.storage.v1.BucketOuterClass.CorsRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule 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.storage.v1.BucketOuterClass.CorsRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule 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.storage.v1.BucketOuterClass.CorsRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule 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.storage.v1.BucketOuterClass.CorsRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule 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.storage.v1.BucketOuterClass.CorsRule 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; } /** *
     * A CORS rule resource.
     * For details about the concept, see [documentation](/docs/storage/concepts/cors).
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.CorsRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.CorsRule) yandex.cloud.api.storage.v1.BucketOuterClass.CorsRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CorsRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CorsRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.class, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.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_ = ""; allowedMethods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); allowedHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); allowedOrigins_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); exposeHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); if (maxAgeSecondsBuilder_ == null) { maxAgeSeconds_ = null; } else { maxAgeSeconds_ = null; maxAgeSecondsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CorsRule_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule build() { yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule result = new yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule(this); int from_bitField0_ = bitField0_; result.id_ = id_; if (((bitField0_ & 0x00000001) != 0)) { allowedMethods_ = java.util.Collections.unmodifiableList(allowedMethods_); bitField0_ = (bitField0_ & ~0x00000001); } result.allowedMethods_ = allowedMethods_; if (((bitField0_ & 0x00000002) != 0)) { allowedHeaders_ = allowedHeaders_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.allowedHeaders_ = allowedHeaders_; if (((bitField0_ & 0x00000004) != 0)) { allowedOrigins_ = allowedOrigins_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.allowedOrigins_ = allowedOrigins_; if (((bitField0_ & 0x00000008) != 0)) { exposeHeaders_ = exposeHeaders_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.exposeHeaders_ = exposeHeaders_; if (maxAgeSecondsBuilder_ == null) { result.maxAgeSeconds_ = maxAgeSeconds_; } else { result.maxAgeSeconds_ = maxAgeSecondsBuilder_.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.storage.v1.BucketOuterClass.CorsRule) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.allowedMethods_.isEmpty()) { if (allowedMethods_.isEmpty()) { allowedMethods_ = other.allowedMethods_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAllowedMethodsIsMutable(); allowedMethods_.addAll(other.allowedMethods_); } onChanged(); } if (!other.allowedHeaders_.isEmpty()) { if (allowedHeaders_.isEmpty()) { allowedHeaders_ = other.allowedHeaders_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAllowedHeadersIsMutable(); allowedHeaders_.addAll(other.allowedHeaders_); } onChanged(); } if (!other.allowedOrigins_.isEmpty()) { if (allowedOrigins_.isEmpty()) { allowedOrigins_ = other.allowedOrigins_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAllowedOriginsIsMutable(); allowedOrigins_.addAll(other.allowedOrigins_); } onChanged(); } if (!other.exposeHeaders_.isEmpty()) { if (exposeHeaders_.isEmpty()) { exposeHeaders_ = other.exposeHeaders_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureExposeHeadersIsMutable(); exposeHeaders_.addAll(other.exposeHeaders_); } onChanged(); } if (other.hasMaxAgeSeconds()) { mergeMaxAgeSeconds(other.getMaxAgeSeconds()); } 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.storage.v1.BucketOuterClass.CorsRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the CORS rule.
       * 
* * 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 CORS rule.
       * 
* * 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 CORS rule.
       * 
* * 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 CORS rule.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the CORS rule.
       * 
* * 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; } private java.util.List allowedMethods_ = java.util.Collections.emptyList(); private void ensureAllowedMethodsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { allowedMethods_ = new java.util.ArrayList(allowedMethods_); bitField0_ |= 0x00000001; } } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return A list containing the allowedMethods. */ public java.util.List getAllowedMethodsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method>(allowedMethods_, allowedMethods_converter_); } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return The count of allowedMethods. */ public int getAllowedMethodsCount() { return allowedMethods_.size(); } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The allowedMethods at the given index. */ public yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method getAllowedMethods(int index) { return allowedMethods_converter_.convert(allowedMethods_.get(index)); } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param index The index to set the value at. * @param value The allowedMethods to set. * @return This builder for chaining. */ public Builder setAllowedMethods( int index, yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method value) { if (value == null) { throw new NullPointerException(); } ensureAllowedMethodsIsMutable(); allowedMethods_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param value The allowedMethods to add. * @return This builder for chaining. */ public Builder addAllowedMethods(yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method value) { if (value == null) { throw new NullPointerException(); } ensureAllowedMethodsIsMutable(); allowedMethods_.add(value.getNumber()); onChanged(); return this; } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param values The allowedMethods to add. * @return This builder for chaining. */ public Builder addAllAllowedMethods( java.lang.Iterable values) { ensureAllowedMethodsIsMutable(); for (yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule.Method value : values) { allowedMethods_.add(value.getNumber()); } onChanged(); return this; } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return This builder for chaining. */ public Builder clearAllowedMethods() { allowedMethods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @return A list containing the enum numeric values on the wire for allowedMethods. */ public java.util.List getAllowedMethodsValueList() { return java.util.Collections.unmodifiableList(allowedMethods_); } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The enum numeric value on the wire of allowedMethods at the given index. */ public int getAllowedMethodsValue(int index) { return allowedMethods_.get(index); } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The enum numeric value on the wire of allowedMethods at the given index. * @return This builder for chaining. */ public Builder setAllowedMethodsValue( int index, int value) { ensureAllowedMethodsIsMutable(); allowedMethods_.set(index, value); onChanged(); return this; } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param value The enum numeric value on the wire for allowedMethods to add. * @return This builder for chaining. */ public Builder addAllowedMethodsValue(int value) { ensureAllowedMethodsIsMutable(); allowedMethods_.add(value); onChanged(); return this; } /** *
       * List of HTTP methods allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
       * the list of the allowed methods. If there is a match, all the allowed methods are listed in the
       * `Access-Control-Allow-Methods` header of the response.
       * 
* * repeated .yandex.cloud.storage.v1.CorsRule.Method allowed_methods = 2 [(.yandex.cloud.size) = ">0", (.yandex.cloud.unique) = true]; * @param values The enum numeric values on the wire for allowedMethods to add. * @return This builder for chaining. */ public Builder addAllAllowedMethodsValue( java.lang.Iterable values) { ensureAllowedMethodsIsMutable(); for (int value : values) { allowedMethods_.add(value); } onChanged(); return this; } private com.google.protobuf.LazyStringList allowedHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { allowedHeaders_ = new com.google.protobuf.LazyStringArrayList(allowedHeaders_); bitField0_ |= 0x00000002; } } /** *
       * List of HTTP headers allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
       * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
       * `Access-Control-Allow-Headers` header of the response.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
       * 
* * repeated string allowed_headers = 3; * @return A list containing the allowedHeaders. */ public com.google.protobuf.ProtocolStringList getAllowedHeadersList() { return allowedHeaders_.getUnmodifiableView(); } /** *
       * List of HTTP headers allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
       * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
       * `Access-Control-Allow-Headers` header of the response.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
       * 
* * repeated string allowed_headers = 3; * @return The count of allowedHeaders. */ public int getAllowedHeadersCount() { return allowedHeaders_.size(); } /** *
       * List of HTTP headers allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
       * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
       * `Access-Control-Allow-Headers` header of the response.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
       * 
* * repeated string allowed_headers = 3; * @param index The index of the element to return. * @return The allowedHeaders at the given index. */ public java.lang.String getAllowedHeaders(int index) { return allowedHeaders_.get(index); } /** *
       * List of HTTP headers allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
       * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
       * `Access-Control-Allow-Headers` header of the response.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
       * 
* * repeated string allowed_headers = 3; * @param index The index of the value to return. * @return The bytes of the allowedHeaders at the given index. */ public com.google.protobuf.ByteString getAllowedHeadersBytes(int index) { return allowedHeaders_.getByteString(index); } /** *
       * List of HTTP headers allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
       * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
       * `Access-Control-Allow-Headers` header of the response.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
       * 
* * repeated string allowed_headers = 3; * @param index The index to set the value at. * @param value The allowedHeaders to set. * @return This builder for chaining. */ public Builder setAllowedHeaders( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedHeadersIsMutable(); allowedHeaders_.set(index, value); onChanged(); return this; } /** *
       * List of HTTP headers allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
       * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
       * `Access-Control-Allow-Headers` header of the response.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
       * 
* * repeated string allowed_headers = 3; * @param value The allowedHeaders to add. * @return This builder for chaining. */ public Builder addAllowedHeaders( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedHeadersIsMutable(); allowedHeaders_.add(value); onChanged(); return this; } /** *
       * List of HTTP headers allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
       * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
       * `Access-Control-Allow-Headers` header of the response.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
       * 
* * repeated string allowed_headers = 3; * @param values The allowedHeaders to add. * @return This builder for chaining. */ public Builder addAllAllowedHeaders( java.lang.Iterable values) { ensureAllowedHeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, allowedHeaders_); onChanged(); return this; } /** *
       * List of HTTP headers allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
       * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
       * `Access-Control-Allow-Headers` header of the response.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
       * 
* * repeated string allowed_headers = 3; * @return This builder for chaining. */ public Builder clearAllowedHeaders() { allowedHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * List of HTTP headers allowed by the CORS rule.
       * When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
       * [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
       * the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
       * `Access-Control-Allow-Headers` header of the response.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
       * 
* * repeated string allowed_headers = 3; * @param value The bytes of the allowedHeaders to add. * @return This builder for chaining. */ public Builder addAllowedHeadersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowedHeadersIsMutable(); allowedHeaders_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList allowedOrigins_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedOriginsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { allowedOrigins_ = new com.google.protobuf.LazyStringArrayList(allowedOrigins_); bitField0_ |= 0x00000004; } } /** *
       * List of request origins allowed by the CORS rule.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
       * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @return A list containing the allowedOrigins. */ public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { return allowedOrigins_.getUnmodifiableView(); } /** *
       * List of request origins allowed by the CORS rule.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
       * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @return The count of allowedOrigins. */ public int getAllowedOriginsCount() { return allowedOrigins_.size(); } /** *
       * List of request origins allowed by the CORS rule.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
       * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param index The index of the element to return. * @return The allowedOrigins at the given index. */ public java.lang.String getAllowedOrigins(int index) { return allowedOrigins_.get(index); } /** *
       * List of request origins allowed by the CORS rule.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
       * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param index The index of the value to return. * @return The bytes of the allowedOrigins at the given index. */ public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { return allowedOrigins_.getByteString(index); } /** *
       * List of request origins allowed by the CORS rule.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
       * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param index The index to set the value at. * @param value The allowedOrigins to set. * @return This builder for chaining. */ public Builder setAllowedOrigins( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedOriginsIsMutable(); allowedOrigins_.set(index, value); onChanged(); return this; } /** *
       * List of request origins allowed by the CORS rule.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
       * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param value The allowedOrigins to add. * @return This builder for chaining. */ public Builder addAllowedOrigins( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedOriginsIsMutable(); allowedOrigins_.add(value); onChanged(); return this; } /** *
       * List of request origins allowed by the CORS rule.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
       * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param values The allowedOrigins to add. * @return This builder for chaining. */ public Builder addAllAllowedOrigins( java.lang.Iterable values) { ensureAllowedOriginsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, allowedOrigins_); onChanged(); return this; } /** *
       * List of request origins allowed by the CORS rule.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
       * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @return This builder for chaining. */ public Builder clearAllowedOrigins() { allowedOrigins_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * List of request origins allowed by the CORS rule.
       * Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
       * For example, `http://*.example.com` value will allow requests originating from all subdomains of `example.com`.
       * 
* * repeated string allowed_origins = 4 [(.yandex.cloud.size) = ">0"]; * @param value The bytes of the allowedOrigins to add. * @return This builder for chaining. */ public Builder addAllowedOriginsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowedOriginsIsMutable(); allowedOrigins_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList exposeHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExposeHeadersIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { exposeHeaders_ = new com.google.protobuf.LazyStringArrayList(exposeHeaders_); bitField0_ |= 0x00000008; } } /** *
       * List of headers contained in responses to CORS requests that can be accessed by applications.
       * 
* * repeated string expose_headers = 5; * @return A list containing the exposeHeaders. */ public com.google.protobuf.ProtocolStringList getExposeHeadersList() { return exposeHeaders_.getUnmodifiableView(); } /** *
       * List of headers contained in responses to CORS requests that can be accessed by applications.
       * 
* * repeated string expose_headers = 5; * @return The count of exposeHeaders. */ public int getExposeHeadersCount() { return exposeHeaders_.size(); } /** *
       * List of headers contained in responses to CORS requests that can be accessed by applications.
       * 
* * repeated string expose_headers = 5; * @param index The index of the element to return. * @return The exposeHeaders at the given index. */ public java.lang.String getExposeHeaders(int index) { return exposeHeaders_.get(index); } /** *
       * List of headers contained in responses to CORS requests that can be accessed by applications.
       * 
* * repeated string expose_headers = 5; * @param index The index of the value to return. * @return The bytes of the exposeHeaders at the given index. */ public com.google.protobuf.ByteString getExposeHeadersBytes(int index) { return exposeHeaders_.getByteString(index); } /** *
       * List of headers contained in responses to CORS requests that can be accessed by applications.
       * 
* * repeated string expose_headers = 5; * @param index The index to set the value at. * @param value The exposeHeaders to set. * @return This builder for chaining. */ public Builder setExposeHeaders( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExposeHeadersIsMutable(); exposeHeaders_.set(index, value); onChanged(); return this; } /** *
       * List of headers contained in responses to CORS requests that can be accessed by applications.
       * 
* * repeated string expose_headers = 5; * @param value The exposeHeaders to add. * @return This builder for chaining. */ public Builder addExposeHeaders( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExposeHeadersIsMutable(); exposeHeaders_.add(value); onChanged(); return this; } /** *
       * List of headers contained in responses to CORS requests that can be accessed by applications.
       * 
* * repeated string expose_headers = 5; * @param values The exposeHeaders to add. * @return This builder for chaining. */ public Builder addAllExposeHeaders( java.lang.Iterable values) { ensureExposeHeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, exposeHeaders_); onChanged(); return this; } /** *
       * List of headers contained in responses to CORS requests that can be accessed by applications.
       * 
* * repeated string expose_headers = 5; * @return This builder for chaining. */ public Builder clearExposeHeaders() { exposeHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * List of headers contained in responses to CORS requests that can be accessed by applications.
       * 
* * repeated string expose_headers = 5; * @param value The bytes of the exposeHeaders to add. * @return This builder for chaining. */ public Builder addExposeHeadersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExposeHeadersIsMutable(); exposeHeaders_.add(value); onChanged(); return this; } private com.google.protobuf.Int64Value maxAgeSeconds_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxAgeSecondsBuilder_; /** *
       * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
       * object requested, the HTTP method, and the origin.
       * 
* * .google.protobuf.Int64Value max_age_seconds = 6; * @return Whether the maxAgeSeconds field is set. */ public boolean hasMaxAgeSeconds() { return maxAgeSecondsBuilder_ != null || maxAgeSeconds_ != null; } /** *
       * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
       * object requested, the HTTP method, and the origin.
       * 
* * .google.protobuf.Int64Value max_age_seconds = 6; * @return The maxAgeSeconds. */ public com.google.protobuf.Int64Value getMaxAgeSeconds() { if (maxAgeSecondsBuilder_ == null) { return maxAgeSeconds_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxAgeSeconds_; } else { return maxAgeSecondsBuilder_.getMessage(); } } /** *
       * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
       * object requested, the HTTP method, and the origin.
       * 
* * .google.protobuf.Int64Value max_age_seconds = 6; */ public Builder setMaxAgeSeconds(com.google.protobuf.Int64Value value) { if (maxAgeSecondsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxAgeSeconds_ = value; onChanged(); } else { maxAgeSecondsBuilder_.setMessage(value); } return this; } /** *
       * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
       * object requested, the HTTP method, and the origin.
       * 
* * .google.protobuf.Int64Value max_age_seconds = 6; */ public Builder setMaxAgeSeconds( com.google.protobuf.Int64Value.Builder builderForValue) { if (maxAgeSecondsBuilder_ == null) { maxAgeSeconds_ = builderForValue.build(); onChanged(); } else { maxAgeSecondsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
       * object requested, the HTTP method, and the origin.
       * 
* * .google.protobuf.Int64Value max_age_seconds = 6; */ public Builder mergeMaxAgeSeconds(com.google.protobuf.Int64Value value) { if (maxAgeSecondsBuilder_ == null) { if (maxAgeSeconds_ != null) { maxAgeSeconds_ = com.google.protobuf.Int64Value.newBuilder(maxAgeSeconds_).mergeFrom(value).buildPartial(); } else { maxAgeSeconds_ = value; } onChanged(); } else { maxAgeSecondsBuilder_.mergeFrom(value); } return this; } /** *
       * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
       * object requested, the HTTP method, and the origin.
       * 
* * .google.protobuf.Int64Value max_age_seconds = 6; */ public Builder clearMaxAgeSeconds() { if (maxAgeSecondsBuilder_ == null) { maxAgeSeconds_ = null; onChanged(); } else { maxAgeSeconds_ = null; maxAgeSecondsBuilder_ = null; } return this; } /** *
       * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
       * object requested, the HTTP method, and the origin.
       * 
* * .google.protobuf.Int64Value max_age_seconds = 6; */ public com.google.protobuf.Int64Value.Builder getMaxAgeSecondsBuilder() { onChanged(); return getMaxAgeSecondsFieldBuilder().getBuilder(); } /** *
       * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
       * object requested, the HTTP method, and the origin.
       * 
* * .google.protobuf.Int64Value max_age_seconds = 6; */ public com.google.protobuf.Int64ValueOrBuilder getMaxAgeSecondsOrBuilder() { if (maxAgeSecondsBuilder_ != null) { return maxAgeSecondsBuilder_.getMessageOrBuilder(); } else { return maxAgeSeconds_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxAgeSeconds_; } } /** *
       * Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
       * object requested, the HTTP method, and the origin.
       * 
* * .google.protobuf.Int64Value max_age_seconds = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMaxAgeSecondsFieldBuilder() { if (maxAgeSecondsBuilder_ == null) { maxAgeSecondsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMaxAgeSeconds(), getParentForChildren(), isClean()); maxAgeSeconds_ = null; } return maxAgeSecondsBuilder_; } @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.storage.v1.CorsRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.CorsRule) private static final yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CorsRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CorsRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CorsRule(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.storage.v1.BucketOuterClass.CorsRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WebsiteSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.WebsiteSettings) com.google.protobuf.MessageOrBuilder { /** *
     * Key of the index page object that is returned when a response is made to the root of the website.
     * Either [index] or [redirect_all_requests] must be specified in order for the bucket to host a static website.
     * If specified, the index page object must be located in the root of the bucket.
     * 
* * string index = 1; * @return The index. */ java.lang.String getIndex(); /** *
     * Key of the index page object that is returned when a response is made to the root of the website.
     * Either [index] or [redirect_all_requests] must be specified in order for the bucket to host a static website.
     * If specified, the index page object must be located in the root of the bucket.
     * 
* * string index = 1; * @return The bytes for index. */ com.google.protobuf.ByteString getIndexBytes(); /** *
     * Key of the error page object that is returned when an error occurs.
     * 
* * string error = 2; * @return The error. */ java.lang.String getError(); /** *
     * Key of the error page object that is returned when an error occurs.
     * 
* * string error = 2; * @return The bytes for error. */ com.google.protobuf.ByteString getErrorBytes(); /** *
     * Configuration for redirecting all requests sent to the website.
     * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
     * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; * @return Whether the redirectAllRequests field is set. */ boolean hasRedirectAllRequests(); /** *
     * Configuration for redirecting all requests sent to the website.
     * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
     * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; * @return The redirectAllRequests. */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme getRedirectAllRequests(); /** *
     * Configuration for redirecting all requests sent to the website.
     * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
     * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.SchemeOrBuilder getRedirectAllRequestsOrBuilder(); /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ java.util.List getRoutingRulesList(); /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule getRoutingRules(int index); /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ int getRoutingRulesCount(); /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ java.util.List getRoutingRulesOrBuilderList(); /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRuleOrBuilder getRoutingRulesOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings} */ public static final class WebsiteSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.WebsiteSettings) WebsiteSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use WebsiteSettings.newBuilder() to construct. private WebsiteSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WebsiteSettings() { index_ = ""; error_ = ""; routingRules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WebsiteSettings(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WebsiteSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); index_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } case 26: { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.Builder subBuilder = null; if (redirectAllRequests_ != null) { subBuilder = redirectAllRequests_.toBuilder(); } redirectAllRequests_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(redirectAllRequests_); redirectAllRequests_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { routingRules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } routingRules_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { routingRules_ = java.util.Collections.unmodifiableList(routingRules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Builder.class); } /** * Protobuf enum {@code yandex.cloud.storage.v1.WebsiteSettings.Protocol} */ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { /** * PROTOCOL_UNSPECIFIED = 0; */ PROTOCOL_UNSPECIFIED(0), /** *
       * `http` scheme.
       * 
* * PROTOCOL_HTTP = 1; */ PROTOCOL_HTTP(1), /** *
       * `https` scheme.
       * 
* * PROTOCOL_HTTPS = 2; */ PROTOCOL_HTTPS(2), UNRECOGNIZED(-1), ; /** * PROTOCOL_UNSPECIFIED = 0; */ public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; /** *
       * `http` scheme.
       * 
* * PROTOCOL_HTTP = 1; */ public static final int PROTOCOL_HTTP_VALUE = 1; /** *
       * `https` scheme.
       * 
* * PROTOCOL_HTTPS = 2; */ public static final int PROTOCOL_HTTPS_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Protocol valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Protocol forNumber(int value) { switch (value) { case 0: return PROTOCOL_UNSPECIFIED; case 1: return PROTOCOL_HTTP; case 2: return PROTOCOL_HTTPS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Protocol> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Protocol findValueByNumber(int number) { return Protocol.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.getDescriptor().getEnumTypes().get(0); } private static final Protocol[] VALUES = values(); public static Protocol valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Protocol(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.storage.v1.WebsiteSettings.Protocol) } public interface SchemeOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.WebsiteSettings.Scheme) com.google.protobuf.MessageOrBuilder { /** *
       * Scheme of the redirect URI.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ int getProtocolValue(); /** *
       * Scheme of the redirect URI.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 1; * @return The protocol. */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol getProtocol(); /** *
       * Hostname of the redirect URI.
       * 
* * string hostname = 2; * @return The hostname. */ java.lang.String getHostname(); /** *
       * Hostname of the redirect URI.
       * 
* * string hostname = 2; * @return The bytes for hostname. */ com.google.protobuf.ByteString getHostnameBytes(); } /** *
     * A configuration resource for redirecting all requests sent to the website.
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings.Scheme} */ public static final class Scheme extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.WebsiteSettings.Scheme) SchemeOrBuilder { private static final long serialVersionUID = 0L; // Use Scheme.newBuilder() to construct. private Scheme(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Scheme() { protocol_ = 0; hostname_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Scheme(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Scheme( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); protocol_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); hostname_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.Builder.class); } public static final int PROTOCOL_FIELD_NUMBER = 1; private int protocol_; /** *
       * Scheme of the redirect URI.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
       * Scheme of the redirect URI.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 1; * @return The protocol. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol getProtocol() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol result = yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.valueOf(protocol_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.UNRECOGNIZED : result; } public static final int HOSTNAME_FIELD_NUMBER = 2; private volatile java.lang.Object hostname_; /** *
       * Hostname of the redirect URI.
       * 
* * string hostname = 2; * @return The hostname. */ @java.lang.Override public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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(); hostname_ = s; return s; } } /** *
       * Hostname of the redirect URI.
       * 
* * string hostname = 2; * @return The bytes for hostname. */ @java.lang.Override public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = 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 (protocol_ != yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { output.writeEnum(1, protocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostname_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (protocol_ != yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, protocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostname_); } 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.storage.v1.BucketOuterClass.WebsiteSettings.Scheme)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme other = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme) obj; if (protocol_ != other.protocol_) return false; if (!getHostname() .equals(other.getHostname())) 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) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme 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.storage.v1.BucketOuterClass.WebsiteSettings.Scheme parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme 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.storage.v1.BucketOuterClass.WebsiteSettings.Scheme parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme 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.storage.v1.BucketOuterClass.WebsiteSettings.Scheme parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme 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.storage.v1.BucketOuterClass.WebsiteSettings.Scheme parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme 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.storage.v1.BucketOuterClass.WebsiteSettings.Scheme 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; } /** *
       * A configuration resource for redirecting all requests sent to the website.
       * 
* * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings.Scheme} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.WebsiteSettings.Scheme) yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.SchemeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.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(); protocol_ = 0; hostname_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme build() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme result = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme(this); result.protocol_ = protocol_; result.hostname_ = hostname_; 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.storage.v1.BucketOuterClass.WebsiteSettings.Scheme) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.getDefaultInstance()) return this; if (other.protocol_ != 0) { setProtocolValue(other.getProtocolValue()); } if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; 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.storage.v1.BucketOuterClass.WebsiteSettings.Scheme parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int protocol_ = 0; /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 1; * @param value The enum numeric value on the wire for protocol to set. * @return This builder for chaining. */ public Builder setProtocolValue(int value) { protocol_ = value; onChanged(); return this; } /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 1; * @return The protocol. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol getProtocol() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol result = yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.valueOf(protocol_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.UNRECOGNIZED : result; } /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 1; * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol value) { if (value == null) { throw new NullPointerException(); } protocol_ = value.getNumber(); onChanged(); return this; } /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 1; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = 0; onChanged(); return this; } private java.lang.Object hostname_ = ""; /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 2; * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 2; * @return The bytes for hostname. */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 2; * @param value The hostname to set. * @return This builder for chaining. */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hostname_ = value; onChanged(); return this; } /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 2; * @return This builder for chaining. */ public Builder clearHostname() { hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 2; * @param value The bytes for hostname to set. * @return This builder for chaining. */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = 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.storage.v1.WebsiteSettings.Scheme) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.WebsiteSettings.Scheme) private static final yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Scheme parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Scheme(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.storage.v1.BucketOuterClass.WebsiteSettings.Scheme getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.WebsiteSettings.Condition) com.google.protobuf.MessageOrBuilder { /** *
       * HTTP status code (number only) that must match for the redirect to apply.
       * 
* * string http_error_code_returned_equals = 1; * @return The httpErrorCodeReturnedEquals. */ java.lang.String getHttpErrorCodeReturnedEquals(); /** *
       * HTTP status code (number only) that must match for the redirect to apply.
       * 
* * string http_error_code_returned_equals = 1; * @return The bytes for httpErrorCodeReturnedEquals. */ com.google.protobuf.ByteString getHttpErrorCodeReturnedEqualsBytes(); /** *
       * Prefix of the object key from which requests are redirected.
       * 
* * string key_prefix_equals = 2; * @return The keyPrefixEquals. */ java.lang.String getKeyPrefixEquals(); /** *
       * Prefix of the object key from which requests are redirected.
       * 
* * string key_prefix_equals = 2; * @return The bytes for keyPrefixEquals. */ com.google.protobuf.ByteString getKeyPrefixEqualsBytes(); } /** * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings.Condition} */ public static final class Condition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.WebsiteSettings.Condition) ConditionOrBuilder { private static final long serialVersionUID = 0L; // Use Condition.newBuilder() to construct. private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Condition() { httpErrorCodeReturnedEquals_ = ""; keyPrefixEquals_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Condition(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Condition( 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(); httpErrorCodeReturnedEquals_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); keyPrefixEquals_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.Builder.class); } public static final int HTTP_ERROR_CODE_RETURNED_EQUALS_FIELD_NUMBER = 1; private volatile java.lang.Object httpErrorCodeReturnedEquals_; /** *
       * HTTP status code (number only) that must match for the redirect to apply.
       * 
* * string http_error_code_returned_equals = 1; * @return The httpErrorCodeReturnedEquals. */ @java.lang.Override public java.lang.String getHttpErrorCodeReturnedEquals() { java.lang.Object ref = httpErrorCodeReturnedEquals_; 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(); httpErrorCodeReturnedEquals_ = s; return s; } } /** *
       * HTTP status code (number only) that must match for the redirect to apply.
       * 
* * string http_error_code_returned_equals = 1; * @return The bytes for httpErrorCodeReturnedEquals. */ @java.lang.Override public com.google.protobuf.ByteString getHttpErrorCodeReturnedEqualsBytes() { java.lang.Object ref = httpErrorCodeReturnedEquals_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpErrorCodeReturnedEquals_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_PREFIX_EQUALS_FIELD_NUMBER = 2; private volatile java.lang.Object keyPrefixEquals_; /** *
       * Prefix of the object key from which requests are redirected.
       * 
* * string key_prefix_equals = 2; * @return The keyPrefixEquals. */ @java.lang.Override public java.lang.String getKeyPrefixEquals() { java.lang.Object ref = keyPrefixEquals_; 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(); keyPrefixEquals_ = s; return s; } } /** *
       * Prefix of the object key from which requests are redirected.
       * 
* * string key_prefix_equals = 2; * @return The bytes for keyPrefixEquals. */ @java.lang.Override public com.google.protobuf.ByteString getKeyPrefixEqualsBytes() { java.lang.Object ref = keyPrefixEquals_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyPrefixEquals_ = 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(httpErrorCodeReturnedEquals_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpErrorCodeReturnedEquals_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPrefixEquals_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyPrefixEquals_); } 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(httpErrorCodeReturnedEquals_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpErrorCodeReturnedEquals_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPrefixEquals_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyPrefixEquals_); } 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.storage.v1.BucketOuterClass.WebsiteSettings.Condition)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition other = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition) obj; if (!getHttpErrorCodeReturnedEquals() .equals(other.getHttpErrorCodeReturnedEquals())) return false; if (!getKeyPrefixEquals() .equals(other.getKeyPrefixEquals())) 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) + HTTP_ERROR_CODE_RETURNED_EQUALS_FIELD_NUMBER; hash = (53 * hash) + getHttpErrorCodeReturnedEquals().hashCode(); hash = (37 * hash) + KEY_PREFIX_EQUALS_FIELD_NUMBER; hash = (53 * hash) + getKeyPrefixEquals().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition 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.storage.v1.BucketOuterClass.WebsiteSettings.Condition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition 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.storage.v1.BucketOuterClass.WebsiteSettings.Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition 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.storage.v1.BucketOuterClass.WebsiteSettings.Condition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition 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.storage.v1.BucketOuterClass.WebsiteSettings.Condition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition 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.storage.v1.BucketOuterClass.WebsiteSettings.Condition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings.Condition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.WebsiteSettings.Condition) yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.ConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.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(); httpErrorCodeReturnedEquals_ = ""; keyPrefixEquals_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition build() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition result = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition(this); result.httpErrorCodeReturnedEquals_ = httpErrorCodeReturnedEquals_; result.keyPrefixEquals_ = keyPrefixEquals_; 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.storage.v1.BucketOuterClass.WebsiteSettings.Condition) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.getDefaultInstance()) return this; if (!other.getHttpErrorCodeReturnedEquals().isEmpty()) { httpErrorCodeReturnedEquals_ = other.httpErrorCodeReturnedEquals_; onChanged(); } if (!other.getKeyPrefixEquals().isEmpty()) { keyPrefixEquals_ = other.keyPrefixEquals_; 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.storage.v1.BucketOuterClass.WebsiteSettings.Condition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object httpErrorCodeReturnedEquals_ = ""; /** *
         * HTTP status code (number only) that must match for the redirect to apply.
         * 
* * string http_error_code_returned_equals = 1; * @return The httpErrorCodeReturnedEquals. */ public java.lang.String getHttpErrorCodeReturnedEquals() { java.lang.Object ref = httpErrorCodeReturnedEquals_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpErrorCodeReturnedEquals_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * HTTP status code (number only) that must match for the redirect to apply.
         * 
* * string http_error_code_returned_equals = 1; * @return The bytes for httpErrorCodeReturnedEquals. */ public com.google.protobuf.ByteString getHttpErrorCodeReturnedEqualsBytes() { java.lang.Object ref = httpErrorCodeReturnedEquals_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpErrorCodeReturnedEquals_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * HTTP status code (number only) that must match for the redirect to apply.
         * 
* * string http_error_code_returned_equals = 1; * @param value The httpErrorCodeReturnedEquals to set. * @return This builder for chaining. */ public Builder setHttpErrorCodeReturnedEquals( java.lang.String value) { if (value == null) { throw new NullPointerException(); } httpErrorCodeReturnedEquals_ = value; onChanged(); return this; } /** *
         * HTTP status code (number only) that must match for the redirect to apply.
         * 
* * string http_error_code_returned_equals = 1; * @return This builder for chaining. */ public Builder clearHttpErrorCodeReturnedEquals() { httpErrorCodeReturnedEquals_ = getDefaultInstance().getHttpErrorCodeReturnedEquals(); onChanged(); return this; } /** *
         * HTTP status code (number only) that must match for the redirect to apply.
         * 
* * string http_error_code_returned_equals = 1; * @param value The bytes for httpErrorCodeReturnedEquals to set. * @return This builder for chaining. */ public Builder setHttpErrorCodeReturnedEqualsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpErrorCodeReturnedEquals_ = value; onChanged(); return this; } private java.lang.Object keyPrefixEquals_ = ""; /** *
         * Prefix of the object key from which requests are redirected.
         * 
* * string key_prefix_equals = 2; * @return The keyPrefixEquals. */ public java.lang.String getKeyPrefixEquals() { java.lang.Object ref = keyPrefixEquals_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyPrefixEquals_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Prefix of the object key from which requests are redirected.
         * 
* * string key_prefix_equals = 2; * @return The bytes for keyPrefixEquals. */ public com.google.protobuf.ByteString getKeyPrefixEqualsBytes() { java.lang.Object ref = keyPrefixEquals_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyPrefixEquals_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Prefix of the object key from which requests are redirected.
         * 
* * string key_prefix_equals = 2; * @param value The keyPrefixEquals to set. * @return This builder for chaining. */ public Builder setKeyPrefixEquals( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyPrefixEquals_ = value; onChanged(); return this; } /** *
         * Prefix of the object key from which requests are redirected.
         * 
* * string key_prefix_equals = 2; * @return This builder for chaining. */ public Builder clearKeyPrefixEquals() { keyPrefixEquals_ = getDefaultInstance().getKeyPrefixEquals(); onChanged(); return this; } /** *
         * Prefix of the object key from which requests are redirected.
         * 
* * string key_prefix_equals = 2; * @param value The bytes for keyPrefixEquals to set. * @return This builder for chaining. */ public Builder setKeyPrefixEqualsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyPrefixEquals_ = 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.storage.v1.WebsiteSettings.Condition) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.WebsiteSettings.Condition) private static final yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Condition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Condition(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.storage.v1.BucketOuterClass.WebsiteSettings.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RedirectOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.WebsiteSettings.Redirect) com.google.protobuf.MessageOrBuilder { /** *
       * Hostname of the redirect URI.
       * 
* * string hostname = 1; * @return The hostname. */ java.lang.String getHostname(); /** *
       * Hostname of the redirect URI.
       * 
* * string hostname = 1; * @return The bytes for hostname. */ com.google.protobuf.ByteString getHostnameBytes(); /** *
       * HTTP status code of the redirect response.
       * Default value: `"301"`.
       * 
* * string http_redirect_code = 2 [(.yandex.cloud.pattern) = "3(0[1-9]|[1-9][0-9])"]; * @return The httpRedirectCode. */ java.lang.String getHttpRedirectCode(); /** *
       * HTTP status code of the redirect response.
       * Default value: `"301"`.
       * 
* * string http_redirect_code = 2 [(.yandex.cloud.pattern) = "3(0[1-9]|[1-9][0-9])"]; * @return The bytes for httpRedirectCode. */ com.google.protobuf.ByteString getHttpRedirectCodeBytes(); /** *
       * Scheme of the redirect URI.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 3; * @return The enum numeric value on the wire for protocol. */ int getProtocolValue(); /** *
       * Scheme of the redirect URI.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 3; * @return The protocol. */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol getProtocol(); /** *
       * Substitution for the prefix of the object key specified in [Condition.key_prefix_equals].
       * At most one of [replace_key_prefix_with] and [replace_key_with] can be specified.
       * 
* * string replace_key_prefix_with = 4; * @return The replaceKeyPrefixWith. */ java.lang.String getReplaceKeyPrefixWith(); /** *
       * Substitution for the prefix of the object key specified in [Condition.key_prefix_equals].
       * At most one of [replace_key_prefix_with] and [replace_key_with] can be specified.
       * 
* * string replace_key_prefix_with = 4; * @return The bytes for replaceKeyPrefixWith. */ com.google.protobuf.ByteString getReplaceKeyPrefixWithBytes(); /** *
       * New object key.
       * At most one of [replace_key_with] and [replace_key_prefix_with] can be specified.
       * 
* * string replace_key_with = 5; * @return The replaceKeyWith. */ java.lang.String getReplaceKeyWith(); /** *
       * New object key.
       * At most one of [replace_key_with] and [replace_key_prefix_with] can be specified.
       * 
* * string replace_key_with = 5; * @return The bytes for replaceKeyWith. */ com.google.protobuf.ByteString getReplaceKeyWithBytes(); } /** * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings.Redirect} */ public static final class Redirect extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.WebsiteSettings.Redirect) RedirectOrBuilder { private static final long serialVersionUID = 0L; // Use Redirect.newBuilder() to construct. private Redirect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Redirect() { hostname_ = ""; httpRedirectCode_ = ""; protocol_ = 0; replaceKeyPrefixWith_ = ""; replaceKeyWith_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Redirect(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Redirect( 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(); hostname_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); httpRedirectCode_ = s; break; } case 24: { int rawValue = input.readEnum(); protocol_ = rawValue; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); replaceKeyPrefixWith_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); replaceKeyWith_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; private volatile java.lang.Object hostname_; /** *
       * Hostname of the redirect URI.
       * 
* * string hostname = 1; * @return The hostname. */ @java.lang.Override public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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(); hostname_ = s; return s; } } /** *
       * Hostname of the redirect URI.
       * 
* * string hostname = 1; * @return The bytes for hostname. */ @java.lang.Override public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HTTP_REDIRECT_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object httpRedirectCode_; /** *
       * HTTP status code of the redirect response.
       * Default value: `"301"`.
       * 
* * string http_redirect_code = 2 [(.yandex.cloud.pattern) = "3(0[1-9]|[1-9][0-9])"]; * @return The httpRedirectCode. */ @java.lang.Override public java.lang.String getHttpRedirectCode() { java.lang.Object ref = httpRedirectCode_; 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(); httpRedirectCode_ = s; return s; } } /** *
       * HTTP status code of the redirect response.
       * Default value: `"301"`.
       * 
* * string http_redirect_code = 2 [(.yandex.cloud.pattern) = "3(0[1-9]|[1-9][0-9])"]; * @return The bytes for httpRedirectCode. */ @java.lang.Override public com.google.protobuf.ByteString getHttpRedirectCodeBytes() { java.lang.Object ref = httpRedirectCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpRedirectCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROTOCOL_FIELD_NUMBER = 3; private int protocol_; /** *
       * Scheme of the redirect URI.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 3; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
       * Scheme of the redirect URI.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 3; * @return The protocol. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol getProtocol() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol result = yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.valueOf(protocol_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.UNRECOGNIZED : result; } public static final int REPLACE_KEY_PREFIX_WITH_FIELD_NUMBER = 4; private volatile java.lang.Object replaceKeyPrefixWith_; /** *
       * Substitution for the prefix of the object key specified in [Condition.key_prefix_equals].
       * At most one of [replace_key_prefix_with] and [replace_key_with] can be specified.
       * 
* * string replace_key_prefix_with = 4; * @return The replaceKeyPrefixWith. */ @java.lang.Override public java.lang.String getReplaceKeyPrefixWith() { java.lang.Object ref = replaceKeyPrefixWith_; 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(); replaceKeyPrefixWith_ = s; return s; } } /** *
       * Substitution for the prefix of the object key specified in [Condition.key_prefix_equals].
       * At most one of [replace_key_prefix_with] and [replace_key_with] can be specified.
       * 
* * string replace_key_prefix_with = 4; * @return The bytes for replaceKeyPrefixWith. */ @java.lang.Override public com.google.protobuf.ByteString getReplaceKeyPrefixWithBytes() { java.lang.Object ref = replaceKeyPrefixWith_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); replaceKeyPrefixWith_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPLACE_KEY_WITH_FIELD_NUMBER = 5; private volatile java.lang.Object replaceKeyWith_; /** *
       * New object key.
       * At most one of [replace_key_with] and [replace_key_prefix_with] can be specified.
       * 
* * string replace_key_with = 5; * @return The replaceKeyWith. */ @java.lang.Override public java.lang.String getReplaceKeyWith() { java.lang.Object ref = replaceKeyWith_; 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(); replaceKeyWith_ = s; return s; } } /** *
       * New object key.
       * At most one of [replace_key_with] and [replace_key_prefix_with] can be specified.
       * 
* * string replace_key_with = 5; * @return The bytes for replaceKeyWith. */ @java.lang.Override public com.google.protobuf.ByteString getReplaceKeyWithBytes() { java.lang.Object ref = replaceKeyWith_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); replaceKeyWith_ = 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(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpRedirectCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, httpRedirectCode_); } if (protocol_ != yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { output.writeEnum(3, protocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replaceKeyPrefixWith_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, replaceKeyPrefixWith_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replaceKeyWith_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, replaceKeyWith_); } 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(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpRedirectCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, httpRedirectCode_); } if (protocol_ != yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, protocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replaceKeyPrefixWith_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, replaceKeyPrefixWith_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replaceKeyWith_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, replaceKeyWith_); } 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.storage.v1.BucketOuterClass.WebsiteSettings.Redirect)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect other = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect) obj; if (!getHostname() .equals(other.getHostname())) return false; if (!getHttpRedirectCode() .equals(other.getHttpRedirectCode())) return false; if (protocol_ != other.protocol_) return false; if (!getReplaceKeyPrefixWith() .equals(other.getReplaceKeyPrefixWith())) return false; if (!getReplaceKeyWith() .equals(other.getReplaceKeyWith())) 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) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); hash = (37 * hash) + HTTP_REDIRECT_CODE_FIELD_NUMBER; hash = (53 * hash) + getHttpRedirectCode().hashCode(); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; hash = (37 * hash) + REPLACE_KEY_PREFIX_WITH_FIELD_NUMBER; hash = (53 * hash) + getReplaceKeyPrefixWith().hashCode(); hash = (37 * hash) + REPLACE_KEY_WITH_FIELD_NUMBER; hash = (53 * hash) + getReplaceKeyWith().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect 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.storage.v1.BucketOuterClass.WebsiteSettings.Redirect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect 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.storage.v1.BucketOuterClass.WebsiteSettings.Redirect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect 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.storage.v1.BucketOuterClass.WebsiteSettings.Redirect parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect 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.storage.v1.BucketOuterClass.WebsiteSettings.Redirect parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect 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.storage.v1.BucketOuterClass.WebsiteSettings.Redirect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings.Redirect} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.WebsiteSettings.Redirect) yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RedirectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.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(); hostname_ = ""; httpRedirectCode_ = ""; protocol_ = 0; replaceKeyPrefixWith_ = ""; replaceKeyWith_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect build() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect result = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect(this); result.hostname_ = hostname_; result.httpRedirectCode_ = httpRedirectCode_; result.protocol_ = protocol_; result.replaceKeyPrefixWith_ = replaceKeyPrefixWith_; result.replaceKeyWith_ = replaceKeyWith_; 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.storage.v1.BucketOuterClass.WebsiteSettings.Redirect) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.getDefaultInstance()) return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; onChanged(); } if (!other.getHttpRedirectCode().isEmpty()) { httpRedirectCode_ = other.httpRedirectCode_; onChanged(); } if (other.protocol_ != 0) { setProtocolValue(other.getProtocolValue()); } if (!other.getReplaceKeyPrefixWith().isEmpty()) { replaceKeyPrefixWith_ = other.replaceKeyPrefixWith_; onChanged(); } if (!other.getReplaceKeyWith().isEmpty()) { replaceKeyWith_ = other.replaceKeyWith_; 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.storage.v1.BucketOuterClass.WebsiteSettings.Redirect parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object hostname_ = ""; /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 1; * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 1; * @return The bytes for hostname. */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 1; * @param value The hostname to set. * @return This builder for chaining. */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hostname_ = value; onChanged(); return this; } /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 1; * @return This builder for chaining. */ public Builder clearHostname() { hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** *
         * Hostname of the redirect URI.
         * 
* * string hostname = 1; * @param value The bytes for hostname to set. * @return This builder for chaining. */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; onChanged(); return this; } private java.lang.Object httpRedirectCode_ = ""; /** *
         * HTTP status code of the redirect response.
         * Default value: `"301"`.
         * 
* * string http_redirect_code = 2 [(.yandex.cloud.pattern) = "3(0[1-9]|[1-9][0-9])"]; * @return The httpRedirectCode. */ public java.lang.String getHttpRedirectCode() { java.lang.Object ref = httpRedirectCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpRedirectCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * HTTP status code of the redirect response.
         * Default value: `"301"`.
         * 
* * string http_redirect_code = 2 [(.yandex.cloud.pattern) = "3(0[1-9]|[1-9][0-9])"]; * @return The bytes for httpRedirectCode. */ public com.google.protobuf.ByteString getHttpRedirectCodeBytes() { java.lang.Object ref = httpRedirectCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpRedirectCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * HTTP status code of the redirect response.
         * Default value: `"301"`.
         * 
* * string http_redirect_code = 2 [(.yandex.cloud.pattern) = "3(0[1-9]|[1-9][0-9])"]; * @param value The httpRedirectCode to set. * @return This builder for chaining. */ public Builder setHttpRedirectCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } httpRedirectCode_ = value; onChanged(); return this; } /** *
         * HTTP status code of the redirect response.
         * Default value: `"301"`.
         * 
* * string http_redirect_code = 2 [(.yandex.cloud.pattern) = "3(0[1-9]|[1-9][0-9])"]; * @return This builder for chaining. */ public Builder clearHttpRedirectCode() { httpRedirectCode_ = getDefaultInstance().getHttpRedirectCode(); onChanged(); return this; } /** *
         * HTTP status code of the redirect response.
         * Default value: `"301"`.
         * 
* * string http_redirect_code = 2 [(.yandex.cloud.pattern) = "3(0[1-9]|[1-9][0-9])"]; * @param value The bytes for httpRedirectCode to set. * @return This builder for chaining. */ public Builder setHttpRedirectCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpRedirectCode_ = value; onChanged(); return this; } private int protocol_ = 0; /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 3; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 3; * @param value The enum numeric value on the wire for protocol to set. * @return This builder for chaining. */ public Builder setProtocolValue(int value) { protocol_ = value; onChanged(); return this; } /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 3; * @return The protocol. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol getProtocol() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol result = yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.valueOf(protocol_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol.UNRECOGNIZED : result; } /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 3; * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Protocol value) { if (value == null) { throw new NullPointerException(); } protocol_ = value.getNumber(); onChanged(); return this; } /** *
         * Scheme of the redirect URI.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Protocol protocol = 3; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = 0; onChanged(); return this; } private java.lang.Object replaceKeyPrefixWith_ = ""; /** *
         * Substitution for the prefix of the object key specified in [Condition.key_prefix_equals].
         * At most one of [replace_key_prefix_with] and [replace_key_with] can be specified.
         * 
* * string replace_key_prefix_with = 4; * @return The replaceKeyPrefixWith. */ public java.lang.String getReplaceKeyPrefixWith() { java.lang.Object ref = replaceKeyPrefixWith_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replaceKeyPrefixWith_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Substitution for the prefix of the object key specified in [Condition.key_prefix_equals].
         * At most one of [replace_key_prefix_with] and [replace_key_with] can be specified.
         * 
* * string replace_key_prefix_with = 4; * @return The bytes for replaceKeyPrefixWith. */ public com.google.protobuf.ByteString getReplaceKeyPrefixWithBytes() { java.lang.Object ref = replaceKeyPrefixWith_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); replaceKeyPrefixWith_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Substitution for the prefix of the object key specified in [Condition.key_prefix_equals].
         * At most one of [replace_key_prefix_with] and [replace_key_with] can be specified.
         * 
* * string replace_key_prefix_with = 4; * @param value The replaceKeyPrefixWith to set. * @return This builder for chaining. */ public Builder setReplaceKeyPrefixWith( java.lang.String value) { if (value == null) { throw new NullPointerException(); } replaceKeyPrefixWith_ = value; onChanged(); return this; } /** *
         * Substitution for the prefix of the object key specified in [Condition.key_prefix_equals].
         * At most one of [replace_key_prefix_with] and [replace_key_with] can be specified.
         * 
* * string replace_key_prefix_with = 4; * @return This builder for chaining. */ public Builder clearReplaceKeyPrefixWith() { replaceKeyPrefixWith_ = getDefaultInstance().getReplaceKeyPrefixWith(); onChanged(); return this; } /** *
         * Substitution for the prefix of the object key specified in [Condition.key_prefix_equals].
         * At most one of [replace_key_prefix_with] and [replace_key_with] can be specified.
         * 
* * string replace_key_prefix_with = 4; * @param value The bytes for replaceKeyPrefixWith to set. * @return This builder for chaining. */ public Builder setReplaceKeyPrefixWithBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); replaceKeyPrefixWith_ = value; onChanged(); return this; } private java.lang.Object replaceKeyWith_ = ""; /** *
         * New object key.
         * At most one of [replace_key_with] and [replace_key_prefix_with] can be specified.
         * 
* * string replace_key_with = 5; * @return The replaceKeyWith. */ public java.lang.String getReplaceKeyWith() { java.lang.Object ref = replaceKeyWith_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replaceKeyWith_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * New object key.
         * At most one of [replace_key_with] and [replace_key_prefix_with] can be specified.
         * 
* * string replace_key_with = 5; * @return The bytes for replaceKeyWith. */ public com.google.protobuf.ByteString getReplaceKeyWithBytes() { java.lang.Object ref = replaceKeyWith_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); replaceKeyWith_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * New object key.
         * At most one of [replace_key_with] and [replace_key_prefix_with] can be specified.
         * 
* * string replace_key_with = 5; * @param value The replaceKeyWith to set. * @return This builder for chaining. */ public Builder setReplaceKeyWith( java.lang.String value) { if (value == null) { throw new NullPointerException(); } replaceKeyWith_ = value; onChanged(); return this; } /** *
         * New object key.
         * At most one of [replace_key_with] and [replace_key_prefix_with] can be specified.
         * 
* * string replace_key_with = 5; * @return This builder for chaining. */ public Builder clearReplaceKeyWith() { replaceKeyWith_ = getDefaultInstance().getReplaceKeyWith(); onChanged(); return this; } /** *
         * New object key.
         * At most one of [replace_key_with] and [replace_key_prefix_with] can be specified.
         * 
* * string replace_key_with = 5; * @param value The bytes for replaceKeyWith to set. * @return This builder for chaining. */ public Builder setReplaceKeyWithBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); replaceKeyWith_ = 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.storage.v1.WebsiteSettings.Redirect) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.WebsiteSettings.Redirect) private static final yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Redirect parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Redirect(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.storage.v1.BucketOuterClass.WebsiteSettings.Redirect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RoutingRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.WebsiteSettings.RoutingRule) com.google.protobuf.MessageOrBuilder { /** *
       * Redirect condition.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; * @return Whether the condition field is set. */ boolean hasCondition(); /** *
       * Redirect condition.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; * @return The condition. */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition getCondition(); /** *
       * Redirect condition.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.ConditionOrBuilder getConditionOrBuilder(); /** *
       * Redirect instructions.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; * @return Whether the redirect field is set. */ boolean hasRedirect(); /** *
       * Redirect instructions.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; * @return The redirect. */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect getRedirect(); /** *
       * Redirect instructions.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; */ yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RedirectOrBuilder getRedirectOrBuilder(); } /** *
     * List of redirect rules.
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings.RoutingRule} */ public static final class RoutingRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.WebsiteSettings.RoutingRule) RoutingRuleOrBuilder { private static final long serialVersionUID = 0L; // Use RoutingRule.newBuilder() to construct. private RoutingRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RoutingRule() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RoutingRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RoutingRule( 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.storage.v1.BucketOuterClass.WebsiteSettings.Condition.Builder subBuilder = null; if (condition_ != null) { subBuilder = condition_.toBuilder(); } condition_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(condition_); condition_ = subBuilder.buildPartial(); } break; } case 18: { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.Builder subBuilder = null; if (redirect_ != null) { subBuilder = redirect_.toBuilder(); } redirect_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(redirect_); redirect_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder.class); } public static final int CONDITION_FIELD_NUMBER = 1; private yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition condition_; /** *
       * Redirect condition.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; * @return Whether the condition field is set. */ @java.lang.Override public boolean hasCondition() { return condition_ != null; } /** *
       * Redirect condition.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; * @return The condition. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition getCondition() { return condition_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.getDefaultInstance() : condition_; } /** *
       * Redirect condition.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.ConditionOrBuilder getConditionOrBuilder() { return getCondition(); } public static final int REDIRECT_FIELD_NUMBER = 2; private yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect redirect_; /** *
       * Redirect instructions.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; * @return Whether the redirect field is set. */ @java.lang.Override public boolean hasRedirect() { return redirect_ != null; } /** *
       * Redirect instructions.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; * @return The redirect. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect getRedirect() { return redirect_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.getDefaultInstance() : redirect_; } /** *
       * Redirect instructions.
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RedirectOrBuilder getRedirectOrBuilder() { return getRedirect(); } 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 (condition_ != null) { output.writeMessage(1, getCondition()); } if (redirect_ != null) { output.writeMessage(2, getRedirect()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (condition_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCondition()); } if (redirect_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRedirect()); } 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.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule other = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule) obj; if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { if (!getCondition() .equals(other.getCondition())) return false; } if (hasRedirect() != other.hasRedirect()) return false; if (hasRedirect()) { if (!getRedirect() .equals(other.getRedirect())) 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(); if (hasCondition()) { hash = (37 * hash) + CONDITION_FIELD_NUMBER; hash = (53 * hash) + getCondition().hashCode(); } if (hasRedirect()) { hash = (37 * hash) + REDIRECT_FIELD_NUMBER; hash = (53 * hash) + getRedirect().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule 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.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule 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.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule 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.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule 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.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule 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.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule 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; } /** *
       * List of redirect rules.
       * 
* * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings.RoutingRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.WebsiteSettings.RoutingRule) yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.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(); if (conditionBuilder_ == null) { condition_ = null; } else { condition_ = null; conditionBuilder_ = null; } if (redirectBuilder_ == null) { redirect_ = null; } else { redirect_ = null; redirectBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule build() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule result = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule(this); if (conditionBuilder_ == null) { result.condition_ = condition_; } else { result.condition_ = conditionBuilder_.build(); } if (redirectBuilder_ == null) { result.redirect_ = redirect_; } else { result.redirect_ = redirectBuilder_.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.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.getDefaultInstance()) return this; if (other.hasCondition()) { mergeCondition(other.getCondition()); } if (other.hasRedirect()) { mergeRedirect(other.getRedirect()); } 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.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition condition_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.ConditionOrBuilder> conditionBuilder_; /** *
         * Redirect condition.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; * @return Whether the condition field is set. */ public boolean hasCondition() { return conditionBuilder_ != null || condition_ != null; } /** *
         * Redirect condition.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; * @return The condition. */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition getCondition() { if (conditionBuilder_ == null) { return condition_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.getDefaultInstance() : condition_; } else { return conditionBuilder_.getMessage(); } } /** *
         * Redirect condition.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; */ public Builder setCondition(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition value) { if (conditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } condition_ = value; onChanged(); } else { conditionBuilder_.setMessage(value); } return this; } /** *
         * Redirect condition.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; */ public Builder setCondition( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.Builder builderForValue) { if (conditionBuilder_ == null) { condition_ = builderForValue.build(); onChanged(); } else { conditionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Redirect condition.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; */ public Builder mergeCondition(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition value) { if (conditionBuilder_ == null) { if (condition_ != null) { condition_ = yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.newBuilder(condition_).mergeFrom(value).buildPartial(); } else { condition_ = value; } onChanged(); } else { conditionBuilder_.mergeFrom(value); } return this; } /** *
         * Redirect condition.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; */ public Builder clearCondition() { if (conditionBuilder_ == null) { condition_ = null; onChanged(); } else { condition_ = null; conditionBuilder_ = null; } return this; } /** *
         * Redirect condition.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.Builder getConditionBuilder() { onChanged(); return getConditionFieldBuilder().getBuilder(); } /** *
         * Redirect condition.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.ConditionOrBuilder getConditionOrBuilder() { if (conditionBuilder_ != null) { return conditionBuilder_.getMessageOrBuilder(); } else { return condition_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.getDefaultInstance() : condition_; } } /** *
         * Redirect condition.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Condition condition = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.ConditionOrBuilder> getConditionFieldBuilder() { if (conditionBuilder_ == null) { conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Condition.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.ConditionOrBuilder>( getCondition(), getParentForChildren(), isClean()); condition_ = null; } return conditionBuilder_; } private yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect redirect_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RedirectOrBuilder> redirectBuilder_; /** *
         * Redirect instructions.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; * @return Whether the redirect field is set. */ public boolean hasRedirect() { return redirectBuilder_ != null || redirect_ != null; } /** *
         * Redirect instructions.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; * @return The redirect. */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect getRedirect() { if (redirectBuilder_ == null) { return redirect_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.getDefaultInstance() : redirect_; } else { return redirectBuilder_.getMessage(); } } /** *
         * Redirect instructions.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; */ public Builder setRedirect(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect value) { if (redirectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } redirect_ = value; onChanged(); } else { redirectBuilder_.setMessage(value); } return this; } /** *
         * Redirect instructions.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; */ public Builder setRedirect( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.Builder builderForValue) { if (redirectBuilder_ == null) { redirect_ = builderForValue.build(); onChanged(); } else { redirectBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Redirect instructions.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; */ public Builder mergeRedirect(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect value) { if (redirectBuilder_ == null) { if (redirect_ != null) { redirect_ = yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.newBuilder(redirect_).mergeFrom(value).buildPartial(); } else { redirect_ = value; } onChanged(); } else { redirectBuilder_.mergeFrom(value); } return this; } /** *
         * Redirect instructions.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; */ public Builder clearRedirect() { if (redirectBuilder_ == null) { redirect_ = null; onChanged(); } else { redirect_ = null; redirectBuilder_ = null; } return this; } /** *
         * Redirect instructions.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.Builder getRedirectBuilder() { onChanged(); return getRedirectFieldBuilder().getBuilder(); } /** *
         * Redirect instructions.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RedirectOrBuilder getRedirectOrBuilder() { if (redirectBuilder_ != null) { return redirectBuilder_.getMessageOrBuilder(); } else { return redirect_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.getDefaultInstance() : redirect_; } } /** *
         * Redirect instructions.
         * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Redirect redirect = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RedirectOrBuilder> getRedirectFieldBuilder() { if (redirectBuilder_ == null) { redirectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Redirect.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RedirectOrBuilder>( getRedirect(), getParentForChildren(), isClean()); redirect_ = null; } return redirectBuilder_; } @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.storage.v1.WebsiteSettings.RoutingRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.WebsiteSettings.RoutingRule) private static final yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RoutingRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RoutingRule(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.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int INDEX_FIELD_NUMBER = 1; private volatile java.lang.Object index_; /** *
     * Key of the index page object that is returned when a response is made to the root of the website.
     * Either [index] or [redirect_all_requests] must be specified in order for the bucket to host a static website.
     * If specified, the index page object must be located in the root of the bucket.
     * 
* * string index = 1; * @return The index. */ @java.lang.Override public java.lang.String getIndex() { java.lang.Object ref = index_; 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(); index_ = s; return s; } } /** *
     * Key of the index page object that is returned when a response is made to the root of the website.
     * Either [index] or [redirect_all_requests] must be specified in order for the bucket to host a static website.
     * If specified, the index page object must be located in the root of the bucket.
     * 
* * string index = 1; * @return The bytes for index. */ @java.lang.Override public com.google.protobuf.ByteString getIndexBytes() { java.lang.Object ref = index_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); index_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** *
     * Key of the error page object that is returned when an error occurs.
     * 
* * string error = 2; * @return The error. */ @java.lang.Override public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** *
     * Key of the error page object that is returned when an error occurs.
     * 
* * string error = 2; * @return The bytes for error. */ @java.lang.Override public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REDIRECT_ALL_REQUESTS_FIELD_NUMBER = 3; private yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme redirectAllRequests_; /** *
     * Configuration for redirecting all requests sent to the website.
     * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
     * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; * @return Whether the redirectAllRequests field is set. */ @java.lang.Override public boolean hasRedirectAllRequests() { return redirectAllRequests_ != null; } /** *
     * Configuration for redirecting all requests sent to the website.
     * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
     * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; * @return The redirectAllRequests. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme getRedirectAllRequests() { return redirectAllRequests_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.getDefaultInstance() : redirectAllRequests_; } /** *
     * Configuration for redirecting all requests sent to the website.
     * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
     * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
     * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.SchemeOrBuilder getRedirectAllRequestsOrBuilder() { return getRedirectAllRequests(); } public static final int ROUTING_RULES_FIELD_NUMBER = 4; private java.util.List routingRules_; /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ @java.lang.Override public java.util.List getRoutingRulesList() { return routingRules_; } /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ @java.lang.Override public java.util.List getRoutingRulesOrBuilderList() { return routingRules_; } /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ @java.lang.Override public int getRoutingRulesCount() { return routingRules_.size(); } /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule getRoutingRules(int index) { return routingRules_.get(index); } /** *
     * List of redirect rules.
     * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRuleOrBuilder getRoutingRulesOrBuilder( int index) { return routingRules_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(index_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, index_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } if (redirectAllRequests_ != null) { output.writeMessage(3, getRedirectAllRequests()); } for (int i = 0; i < routingRules_.size(); i++) { output.writeMessage(4, routingRules_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(index_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, index_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } if (redirectAllRequests_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRedirectAllRequests()); } for (int i = 0; i < routingRules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, routingRules_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings other = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings) obj; if (!getIndex() .equals(other.getIndex())) return false; if (!getError() .equals(other.getError())) return false; if (hasRedirectAllRequests() != other.hasRedirectAllRequests()) return false; if (hasRedirectAllRequests()) { if (!getRedirectAllRequests() .equals(other.getRedirectAllRequests())) return false; } if (!getRoutingRulesList() .equals(other.getRoutingRulesList())) 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) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex().hashCode(); hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); if (hasRedirectAllRequests()) { hash = (37 * hash) + REDIRECT_ALL_REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getRedirectAllRequests().hashCode(); } if (getRoutingRulesCount() > 0) { hash = (37 * hash) + ROUTING_RULES_FIELD_NUMBER; hash = (53 * hash) + getRoutingRulesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings 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.storage.v1.BucketOuterClass.WebsiteSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings 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.storage.v1.BucketOuterClass.WebsiteSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings 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.storage.v1.BucketOuterClass.WebsiteSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings 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.storage.v1.BucketOuterClass.WebsiteSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings 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.storage.v1.BucketOuterClass.WebsiteSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.WebsiteSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.WebsiteSettings) yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.class, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRoutingRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); index_ = ""; error_ = ""; if (redirectAllRequestsBuilder_ == null) { redirectAllRequests_ = null; } else { redirectAllRequests_ = null; redirectAllRequestsBuilder_ = null; } if (routingRulesBuilder_ == null) { routingRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { routingRulesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings build() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings result = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings(this); int from_bitField0_ = bitField0_; result.index_ = index_; result.error_ = error_; if (redirectAllRequestsBuilder_ == null) { result.redirectAllRequests_ = redirectAllRequests_; } else { result.redirectAllRequests_ = redirectAllRequestsBuilder_.build(); } if (routingRulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { routingRules_ = java.util.Collections.unmodifiableList(routingRules_); bitField0_ = (bitField0_ & ~0x00000001); } result.routingRules_ = routingRules_; } else { result.routingRules_ = routingRulesBuilder_.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.storage.v1.BucketOuterClass.WebsiteSettings) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.getDefaultInstance()) return this; if (!other.getIndex().isEmpty()) { index_ = other.index_; onChanged(); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } if (other.hasRedirectAllRequests()) { mergeRedirectAllRequests(other.getRedirectAllRequests()); } if (routingRulesBuilder_ == null) { if (!other.routingRules_.isEmpty()) { if (routingRules_.isEmpty()) { routingRules_ = other.routingRules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRoutingRulesIsMutable(); routingRules_.addAll(other.routingRules_); } onChanged(); } } else { if (!other.routingRules_.isEmpty()) { if (routingRulesBuilder_.isEmpty()) { routingRulesBuilder_.dispose(); routingRulesBuilder_ = null; routingRules_ = other.routingRules_; bitField0_ = (bitField0_ & ~0x00000001); routingRulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRoutingRulesFieldBuilder() : null; } else { routingRulesBuilder_.addAllMessages(other.routingRules_); } } } 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.storage.v1.BucketOuterClass.WebsiteSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object index_ = ""; /** *
       * Key of the index page object that is returned when a response is made to the root of the website.
       * Either [index] or [redirect_all_requests] must be specified in order for the bucket to host a static website.
       * If specified, the index page object must be located in the root of the bucket.
       * 
* * string index = 1; * @return The index. */ public java.lang.String getIndex() { java.lang.Object ref = index_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Key of the index page object that is returned when a response is made to the root of the website.
       * Either [index] or [redirect_all_requests] must be specified in order for the bucket to host a static website.
       * If specified, the index page object must be located in the root of the bucket.
       * 
* * string index = 1; * @return The bytes for index. */ public com.google.protobuf.ByteString getIndexBytes() { java.lang.Object ref = index_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); index_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Key of the index page object that is returned when a response is made to the root of the website.
       * Either [index] or [redirect_all_requests] must be specified in order for the bucket to host a static website.
       * If specified, the index page object must be located in the root of the bucket.
       * 
* * string index = 1; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } index_ = value; onChanged(); return this; } /** *
       * Key of the index page object that is returned when a response is made to the root of the website.
       * Either [index] or [redirect_all_requests] must be specified in order for the bucket to host a static website.
       * If specified, the index page object must be located in the root of the bucket.
       * 
* * string index = 1; * @return This builder for chaining. */ public Builder clearIndex() { index_ = getDefaultInstance().getIndex(); onChanged(); return this; } /** *
       * Key of the index page object that is returned when a response is made to the root of the website.
       * Either [index] or [redirect_all_requests] must be specified in order for the bucket to host a static website.
       * If specified, the index page object must be located in the root of the bucket.
       * 
* * string index = 1; * @param value The bytes for index to set. * @return This builder for chaining. */ public Builder setIndexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); index_ = value; onChanged(); return this; } private java.lang.Object error_ = ""; /** *
       * Key of the error page object that is returned when an error occurs.
       * 
* * string error = 2; * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Key of the error page object that is returned when an error occurs.
       * 
* * string error = 2; * @return The bytes for error. */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Key of the error page object that is returned when an error occurs.
       * 
* * string error = 2; * @param value The error to set. * @return This builder for chaining. */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** *
       * Key of the error page object that is returned when an error occurs.
       * 
* * string error = 2; * @return This builder for chaining. */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** *
       * Key of the error page object that is returned when an error occurs.
       * 
* * string error = 2; * @param value The bytes for error to set. * @return This builder for chaining. */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } private yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme redirectAllRequests_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.SchemeOrBuilder> redirectAllRequestsBuilder_; /** *
       * Configuration for redirecting all requests sent to the website.
       * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
       * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; * @return Whether the redirectAllRequests field is set. */ public boolean hasRedirectAllRequests() { return redirectAllRequestsBuilder_ != null || redirectAllRequests_ != null; } /** *
       * Configuration for redirecting all requests sent to the website.
       * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
       * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; * @return The redirectAllRequests. */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme getRedirectAllRequests() { if (redirectAllRequestsBuilder_ == null) { return redirectAllRequests_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.getDefaultInstance() : redirectAllRequests_; } else { return redirectAllRequestsBuilder_.getMessage(); } } /** *
       * Configuration for redirecting all requests sent to the website.
       * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
       * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; */ public Builder setRedirectAllRequests(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme value) { if (redirectAllRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } redirectAllRequests_ = value; onChanged(); } else { redirectAllRequestsBuilder_.setMessage(value); } return this; } /** *
       * Configuration for redirecting all requests sent to the website.
       * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
       * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; */ public Builder setRedirectAllRequests( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.Builder builderForValue) { if (redirectAllRequestsBuilder_ == null) { redirectAllRequests_ = builderForValue.build(); onChanged(); } else { redirectAllRequestsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for redirecting all requests sent to the website.
       * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
       * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; */ public Builder mergeRedirectAllRequests(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme value) { if (redirectAllRequestsBuilder_ == null) { if (redirectAllRequests_ != null) { redirectAllRequests_ = yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.newBuilder(redirectAllRequests_).mergeFrom(value).buildPartial(); } else { redirectAllRequests_ = value; } onChanged(); } else { redirectAllRequestsBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for redirecting all requests sent to the website.
       * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
       * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; */ public Builder clearRedirectAllRequests() { if (redirectAllRequestsBuilder_ == null) { redirectAllRequests_ = null; onChanged(); } else { redirectAllRequests_ = null; redirectAllRequestsBuilder_ = null; } return this; } /** *
       * Configuration for redirecting all requests sent to the website.
       * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
       * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.Builder getRedirectAllRequestsBuilder() { onChanged(); return getRedirectAllRequestsFieldBuilder().getBuilder(); } /** *
       * Configuration for redirecting all requests sent to the website.
       * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
       * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.SchemeOrBuilder getRedirectAllRequestsOrBuilder() { if (redirectAllRequestsBuilder_ != null) { return redirectAllRequestsBuilder_.getMessageOrBuilder(); } else { return redirectAllRequests_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.getDefaultInstance() : redirectAllRequests_; } } /** *
       * Configuration for redirecting all requests sent to the website.
       * Either [redirect_all_requests] or [index] must be specified in order for the bucket to host a static website.
       * If [redirect_all_requests] is specified, it must be the only field in [Bucket.website_settings].
       * 
* * .yandex.cloud.storage.v1.WebsiteSettings.Scheme redirect_all_requests = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.SchemeOrBuilder> getRedirectAllRequestsFieldBuilder() { if (redirectAllRequestsBuilder_ == null) { redirectAllRequestsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.Scheme.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.SchemeOrBuilder>( getRedirectAllRequests(), getParentForChildren(), isClean()); redirectAllRequests_ = null; } return redirectAllRequestsBuilder_; } private java.util.List routingRules_ = java.util.Collections.emptyList(); private void ensureRoutingRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { routingRules_ = new java.util.ArrayList(routingRules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRuleOrBuilder> routingRulesBuilder_; /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public java.util.List getRoutingRulesList() { if (routingRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(routingRules_); } else { return routingRulesBuilder_.getMessageList(); } } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public int getRoutingRulesCount() { if (routingRulesBuilder_ == null) { return routingRules_.size(); } else { return routingRulesBuilder_.getCount(); } } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule getRoutingRules(int index) { if (routingRulesBuilder_ == null) { return routingRules_.get(index); } else { return routingRulesBuilder_.getMessage(index); } } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public Builder setRoutingRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule value) { if (routingRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRoutingRulesIsMutable(); routingRules_.set(index, value); onChanged(); } else { routingRulesBuilder_.setMessage(index, value); } return this; } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public Builder setRoutingRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder builderForValue) { if (routingRulesBuilder_ == null) { ensureRoutingRulesIsMutable(); routingRules_.set(index, builderForValue.build()); onChanged(); } else { routingRulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public Builder addRoutingRules(yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule value) { if (routingRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRoutingRulesIsMutable(); routingRules_.add(value); onChanged(); } else { routingRulesBuilder_.addMessage(value); } return this; } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public Builder addRoutingRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule value) { if (routingRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRoutingRulesIsMutable(); routingRules_.add(index, value); onChanged(); } else { routingRulesBuilder_.addMessage(index, value); } return this; } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public Builder addRoutingRules( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder builderForValue) { if (routingRulesBuilder_ == null) { ensureRoutingRulesIsMutable(); routingRules_.add(builderForValue.build()); onChanged(); } else { routingRulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public Builder addRoutingRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder builderForValue) { if (routingRulesBuilder_ == null) { ensureRoutingRulesIsMutable(); routingRules_.add(index, builderForValue.build()); onChanged(); } else { routingRulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public Builder addAllRoutingRules( java.lang.Iterable values) { if (routingRulesBuilder_ == null) { ensureRoutingRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, routingRules_); onChanged(); } else { routingRulesBuilder_.addAllMessages(values); } return this; } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public Builder clearRoutingRules() { if (routingRulesBuilder_ == null) { routingRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { routingRulesBuilder_.clear(); } return this; } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public Builder removeRoutingRules(int index) { if (routingRulesBuilder_ == null) { ensureRoutingRulesIsMutable(); routingRules_.remove(index); onChanged(); } else { routingRulesBuilder_.remove(index); } return this; } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder getRoutingRulesBuilder( int index) { return getRoutingRulesFieldBuilder().getBuilder(index); } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRuleOrBuilder getRoutingRulesOrBuilder( int index) { if (routingRulesBuilder_ == null) { return routingRules_.get(index); } else { return routingRulesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public java.util.List getRoutingRulesOrBuilderList() { if (routingRulesBuilder_ != null) { return routingRulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(routingRules_); } } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder addRoutingRulesBuilder() { return getRoutingRulesFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.getDefaultInstance()); } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder addRoutingRulesBuilder( int index) { return getRoutingRulesFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.getDefaultInstance()); } /** *
       * List of redirect rules.
       * 
* * repeated .yandex.cloud.storage.v1.WebsiteSettings.RoutingRule routing_rules = 4; */ public java.util.List getRoutingRulesBuilderList() { return getRoutingRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRuleOrBuilder> getRoutingRulesFieldBuilder() { if (routingRulesBuilder_ == null) { routingRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings.RoutingRuleOrBuilder>( routingRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); routingRules_ = null; } return routingRulesBuilder_; } @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.storage.v1.WebsiteSettings) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.WebsiteSettings) private static final yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.WebsiteSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WebsiteSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WebsiteSettings(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.storage.v1.BucketOuterClass.WebsiteSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LifecycleRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.LifecycleRule) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the rule. Provided by the client or generated at creation time.
     * 
* * .google.protobuf.StringValue id = 1; * @return Whether the id field is set. */ boolean hasId(); /** *
     * ID of the rule. Provided by the client or generated at creation time.
     * 
* * .google.protobuf.StringValue id = 1; * @return The id. */ com.google.protobuf.StringValue getId(); /** *
     * ID of the rule. Provided by the client or generated at creation time.
     * 
* * .google.protobuf.StringValue id = 1; */ com.google.protobuf.StringValueOrBuilder getIdOrBuilder(); /** *
     * Indicates whether the rule is in effect.
     * 
* * bool enabled = 2; * @return The enabled. */ boolean getEnabled(); /** *
     * Filter that identifies the objects to which the rule applies.
     * If not specified, the rule applies to all objects in the bucket.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; * @return Whether the filter field is set. */ boolean hasFilter(); /** *
     * Filter that identifies the objects to which the rule applies.
     * If not specified, the rule applies to all objects in the bucket.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; * @return The filter. */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter getFilter(); /** *
     * Filter that identifies the objects to which the rule applies.
     * If not specified, the rule applies to all objects in the bucket.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilterOrBuilder getFilterOrBuilder(); /** *
     * Expiration rule.
     * The expiration of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
     * recovered.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
     * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
     * the current version of the object.
     * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
     * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
     * delete marker becomes the current version of the object.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; * @return Whether the expiration field is set. */ boolean hasExpiration(); /** *
     * Expiration rule.
     * The expiration of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
     * recovered.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
     * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
     * the current version of the object.
     * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
     * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
     * delete marker becomes the current version of the object.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; * @return The expiration. */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration getExpiration(); /** *
     * Expiration rule.
     * The expiration of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
     * recovered.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
     * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
     * the current version of the object.
     * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
     * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
     * delete marker becomes the current version of the object.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.ExpirationOrBuilder getExpirationOrBuilder(); /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ java.util.List getTransitionsList(); /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition getTransitions(int index); /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ int getTransitionsCount(); /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ java.util.List getTransitionsOrBuilderList(); /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.TransitionOrBuilder getTransitionsOrBuilder( int index); /** *
     * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; * @return Whether the abortIncompleteMultipartUpload field is set. */ boolean hasAbortIncompleteMultipartUpload(); /** *
     * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; * @return The abortIncompleteMultipartUpload. */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays getAbortIncompleteMultipartUpload(); /** *
     * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDaysOrBuilder getAbortIncompleteMultipartUploadOrBuilder(); /** *
     * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
     * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At expiration, the non-current version of the object is deleted and cannot be recovered.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; * @return Whether the noncurrentExpiration field is set. */ boolean hasNoncurrentExpiration(); /** *
     * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
     * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At expiration, the non-current version of the object is deleted and cannot be recovered.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; * @return The noncurrentExpiration. */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration getNoncurrentExpiration(); /** *
     * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
     * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At expiration, the non-current version of the object is deleted and cannot be recovered.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpirationOrBuilder getNoncurrentExpirationOrBuilder(); /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ java.util.List getNoncurrentTransitionsList(); /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition getNoncurrentTransitions(int index); /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ int getNoncurrentTransitionsCount(); /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ java.util.List getNoncurrentTransitionsOrBuilderList(); /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransitionOrBuilder getNoncurrentTransitionsOrBuilder( int index); } /** *
   * An object lifecycle rule resource for the bucket.
   * For details about the concept, see [documentation](/docs/storage/concepts/lifecycles).
   * 
* * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule} */ public static final class LifecycleRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.LifecycleRule) LifecycleRuleOrBuilder { private static final long serialVersionUID = 0L; // Use LifecycleRule.newBuilder() to construct. private LifecycleRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LifecycleRule() { transitions_ = java.util.Collections.emptyList(); noncurrentTransitions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LifecycleRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LifecycleRule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.StringValue.Builder subBuilder = null; if (id_ != null) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } break; } case 16: { enabled_ = input.readBool(); break; } case 26: { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.Builder subBuilder = null; if (filter_ != null) { subBuilder = filter_.toBuilder(); } filter_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(filter_); filter_ = subBuilder.buildPartial(); } break; } case 34: { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.Builder subBuilder = null; if (expiration_ != null) { subBuilder = expiration_.toBuilder(); } expiration_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expiration_); expiration_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { transitions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } transitions_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.parser(), extensionRegistry)); break; } case 50: { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.Builder subBuilder = null; if (abortIncompleteMultipartUpload_ != null) { subBuilder = abortIncompleteMultipartUpload_.toBuilder(); } abortIncompleteMultipartUpload_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(abortIncompleteMultipartUpload_); abortIncompleteMultipartUpload_ = subBuilder.buildPartial(); } break; } case 58: { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.Builder subBuilder = null; if (noncurrentExpiration_ != null) { subBuilder = noncurrentExpiration_.toBuilder(); } noncurrentExpiration_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(noncurrentExpiration_); noncurrentExpiration_ = subBuilder.buildPartial(); } break; } case 66: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { noncurrentTransitions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } noncurrentTransitions_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { transitions_ = java.util.Collections.unmodifiableList(transitions_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { noncurrentTransitions_ = java.util.Collections.unmodifiableList(noncurrentTransitions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder.class); } public interface AfterDaysOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.LifecycleRule.AfterDays) com.google.protobuf.MessageOrBuilder { /** *
       * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
       * aborted.
       * 
* * .google.protobuf.Int64Value days_after_expiration = 1; * @return Whether the daysAfterExpiration field is set. */ boolean hasDaysAfterExpiration(); /** *
       * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
       * aborted.
       * 
* * .google.protobuf.Int64Value days_after_expiration = 1; * @return The daysAfterExpiration. */ com.google.protobuf.Int64Value getDaysAfterExpiration(); /** *
       * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
       * aborted.
       * 
* * .google.protobuf.Int64Value days_after_expiration = 1; */ com.google.protobuf.Int64ValueOrBuilder getDaysAfterExpirationOrBuilder(); } /** * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.AfterDays} */ public static final class AfterDays extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.LifecycleRule.AfterDays) AfterDaysOrBuilder { private static final long serialVersionUID = 0L; // Use AfterDays.newBuilder() to construct. private AfterDays(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AfterDays() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AfterDays(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AfterDays( 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: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (daysAfterExpiration_ != null) { subBuilder = daysAfterExpiration_.toBuilder(); } daysAfterExpiration_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(daysAfterExpiration_); daysAfterExpiration_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.Builder.class); } public static final int DAYS_AFTER_EXPIRATION_FIELD_NUMBER = 1; private com.google.protobuf.Int64Value daysAfterExpiration_; /** *
       * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
       * aborted.
       * 
* * .google.protobuf.Int64Value days_after_expiration = 1; * @return Whether the daysAfterExpiration field is set. */ @java.lang.Override public boolean hasDaysAfterExpiration() { return daysAfterExpiration_ != null; } /** *
       * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
       * aborted.
       * 
* * .google.protobuf.Int64Value days_after_expiration = 1; * @return The daysAfterExpiration. */ @java.lang.Override public com.google.protobuf.Int64Value getDaysAfterExpiration() { return daysAfterExpiration_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : daysAfterExpiration_; } /** *
       * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
       * aborted.
       * 
* * .google.protobuf.Int64Value days_after_expiration = 1; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDaysAfterExpirationOrBuilder() { return getDaysAfterExpiration(); } 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 (daysAfterExpiration_ != null) { output.writeMessage(1, getDaysAfterExpiration()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (daysAfterExpiration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDaysAfterExpiration()); } 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.storage.v1.BucketOuterClass.LifecycleRule.AfterDays)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays other = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays) obj; if (hasDaysAfterExpiration() != other.hasDaysAfterExpiration()) return false; if (hasDaysAfterExpiration()) { if (!getDaysAfterExpiration() .equals(other.getDaysAfterExpiration())) 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(); if (hasDaysAfterExpiration()) { hash = (37 * hash) + DAYS_AFTER_EXPIRATION_FIELD_NUMBER; hash = (53 * hash) + getDaysAfterExpiration().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays 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.storage.v1.BucketOuterClass.LifecycleRule.AfterDays parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays 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.storage.v1.BucketOuterClass.LifecycleRule.AfterDays parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays 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.storage.v1.BucketOuterClass.LifecycleRule.AfterDays parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays 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.storage.v1.BucketOuterClass.LifecycleRule.AfterDays parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays 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.storage.v1.BucketOuterClass.LifecycleRule.AfterDays prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.AfterDays} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.LifecycleRule.AfterDays) yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDaysOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.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(); if (daysAfterExpirationBuilder_ == null) { daysAfterExpiration_ = null; } else { daysAfterExpiration_ = null; daysAfterExpirationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays build() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays result = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays(this); if (daysAfterExpirationBuilder_ == null) { result.daysAfterExpiration_ = daysAfterExpiration_; } else { result.daysAfterExpiration_ = daysAfterExpirationBuilder_.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.storage.v1.BucketOuterClass.LifecycleRule.AfterDays) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.getDefaultInstance()) return this; if (other.hasDaysAfterExpiration()) { mergeDaysAfterExpiration(other.getDaysAfterExpiration()); } 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.storage.v1.BucketOuterClass.LifecycleRule.AfterDays parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Int64Value daysAfterExpiration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> daysAfterExpirationBuilder_; /** *
         * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
         * aborted.
         * 
* * .google.protobuf.Int64Value days_after_expiration = 1; * @return Whether the daysAfterExpiration field is set. */ public boolean hasDaysAfterExpiration() { return daysAfterExpirationBuilder_ != null || daysAfterExpiration_ != null; } /** *
         * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
         * aborted.
         * 
* * .google.protobuf.Int64Value days_after_expiration = 1; * @return The daysAfterExpiration. */ public com.google.protobuf.Int64Value getDaysAfterExpiration() { if (daysAfterExpirationBuilder_ == null) { return daysAfterExpiration_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : daysAfterExpiration_; } else { return daysAfterExpirationBuilder_.getMessage(); } } /** *
         * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
         * aborted.
         * 
* * .google.protobuf.Int64Value days_after_expiration = 1; */ public Builder setDaysAfterExpiration(com.google.protobuf.Int64Value value) { if (daysAfterExpirationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } daysAfterExpiration_ = value; onChanged(); } else { daysAfterExpirationBuilder_.setMessage(value); } return this; } /** *
         * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
         * aborted.
         * 
* * .google.protobuf.Int64Value days_after_expiration = 1; */ public Builder setDaysAfterExpiration( com.google.protobuf.Int64Value.Builder builderForValue) { if (daysAfterExpirationBuilder_ == null) { daysAfterExpiration_ = builderForValue.build(); onChanged(); } else { daysAfterExpirationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
         * aborted.
         * 
* * .google.protobuf.Int64Value days_after_expiration = 1; */ public Builder mergeDaysAfterExpiration(com.google.protobuf.Int64Value value) { if (daysAfterExpirationBuilder_ == null) { if (daysAfterExpiration_ != null) { daysAfterExpiration_ = com.google.protobuf.Int64Value.newBuilder(daysAfterExpiration_).mergeFrom(value).buildPartial(); } else { daysAfterExpiration_ = value; } onChanged(); } else { daysAfterExpirationBuilder_.mergeFrom(value); } return this; } /** *
         * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
         * aborted.
         * 
* * .google.protobuf.Int64Value days_after_expiration = 1; */ public Builder clearDaysAfterExpiration() { if (daysAfterExpirationBuilder_ == null) { daysAfterExpiration_ = null; onChanged(); } else { daysAfterExpiration_ = null; daysAfterExpirationBuilder_ = null; } return this; } /** *
         * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
         * aborted.
         * 
* * .google.protobuf.Int64Value days_after_expiration = 1; */ public com.google.protobuf.Int64Value.Builder getDaysAfterExpirationBuilder() { onChanged(); return getDaysAfterExpirationFieldBuilder().getBuilder(); } /** *
         * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
         * aborted.
         * 
* * .google.protobuf.Int64Value days_after_expiration = 1; */ public com.google.protobuf.Int64ValueOrBuilder getDaysAfterExpirationOrBuilder() { if (daysAfterExpirationBuilder_ != null) { return daysAfterExpirationBuilder_.getMessageOrBuilder(); } else { return daysAfterExpiration_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : daysAfterExpiration_; } } /** *
         * Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
         * aborted.
         * 
* * .google.protobuf.Int64Value days_after_expiration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDaysAfterExpirationFieldBuilder() { if (daysAfterExpirationBuilder_ == null) { daysAfterExpirationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getDaysAfterExpiration(), getParentForChildren(), isClean()); daysAfterExpiration_ = null; } return daysAfterExpirationBuilder_; } @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.storage.v1.LifecycleRule.AfterDays) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.LifecycleRule.AfterDays) private static final yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AfterDays parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AfterDays(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.storage.v1.BucketOuterClass.LifecycleRule.AfterDays getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NoncurrentExpirationOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration) com.google.protobuf.MessageOrBuilder { /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version expires.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return Whether the noncurrentDays field is set. */ boolean hasNoncurrentDays(); /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version expires.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return The noncurrentDays. */ com.google.protobuf.Int64Value getNoncurrentDays(); /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version expires.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ com.google.protobuf.Int64ValueOrBuilder getNoncurrentDaysOrBuilder(); } /** * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration} */ public static final class NoncurrentExpiration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration) NoncurrentExpirationOrBuilder { private static final long serialVersionUID = 0L; // Use NoncurrentExpiration.newBuilder() to construct. private NoncurrentExpiration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NoncurrentExpiration() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NoncurrentExpiration(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NoncurrentExpiration( 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: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (noncurrentDays_ != null) { subBuilder = noncurrentDays_.toBuilder(); } noncurrentDays_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(noncurrentDays_); noncurrentDays_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.Builder.class); } public static final int NONCURRENT_DAYS_FIELD_NUMBER = 1; private com.google.protobuf.Int64Value noncurrentDays_; /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version expires.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return Whether the noncurrentDays field is set. */ @java.lang.Override public boolean hasNoncurrentDays() { return noncurrentDays_ != null; } /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version expires.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return The noncurrentDays. */ @java.lang.Override public com.google.protobuf.Int64Value getNoncurrentDays() { return noncurrentDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : noncurrentDays_; } /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version expires.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getNoncurrentDaysOrBuilder() { return getNoncurrentDays(); } 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 (noncurrentDays_ != null) { output.writeMessage(1, getNoncurrentDays()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (noncurrentDays_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNoncurrentDays()); } 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration other = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration) obj; if (hasNoncurrentDays() != other.hasNoncurrentDays()) return false; if (hasNoncurrentDays()) { if (!getNoncurrentDays() .equals(other.getNoncurrentDays())) 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(); if (hasNoncurrentDays()) { hash = (37 * hash) + NONCURRENT_DAYS_FIELD_NUMBER; hash = (53 * hash) + getNoncurrentDays().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration) yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpirationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.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(); if (noncurrentDaysBuilder_ == null) { noncurrentDays_ = null; } else { noncurrentDays_ = null; noncurrentDaysBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration build() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration result = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration(this); if (noncurrentDaysBuilder_ == null) { result.noncurrentDays_ = noncurrentDays_; } else { result.noncurrentDays_ = noncurrentDaysBuilder_.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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.getDefaultInstance()) return this; if (other.hasNoncurrentDays()) { mergeNoncurrentDays(other.getNoncurrentDays()); } 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Int64Value noncurrentDays_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> noncurrentDaysBuilder_; /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version expires.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return Whether the noncurrentDays field is set. */ public boolean hasNoncurrentDays() { return noncurrentDaysBuilder_ != null || noncurrentDays_ != null; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version expires.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return The noncurrentDays. */ public com.google.protobuf.Int64Value getNoncurrentDays() { if (noncurrentDaysBuilder_ == null) { return noncurrentDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : noncurrentDays_; } else { return noncurrentDaysBuilder_.getMessage(); } } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version expires.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public Builder setNoncurrentDays(com.google.protobuf.Int64Value value) { if (noncurrentDaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } noncurrentDays_ = value; onChanged(); } else { noncurrentDaysBuilder_.setMessage(value); } return this; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version expires.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public Builder setNoncurrentDays( com.google.protobuf.Int64Value.Builder builderForValue) { if (noncurrentDaysBuilder_ == null) { noncurrentDays_ = builderForValue.build(); onChanged(); } else { noncurrentDaysBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version expires.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public Builder mergeNoncurrentDays(com.google.protobuf.Int64Value value) { if (noncurrentDaysBuilder_ == null) { if (noncurrentDays_ != null) { noncurrentDays_ = com.google.protobuf.Int64Value.newBuilder(noncurrentDays_).mergeFrom(value).buildPartial(); } else { noncurrentDays_ = value; } onChanged(); } else { noncurrentDaysBuilder_.mergeFrom(value); } return this; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version expires.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public Builder clearNoncurrentDays() { if (noncurrentDaysBuilder_ == null) { noncurrentDays_ = null; onChanged(); } else { noncurrentDays_ = null; noncurrentDaysBuilder_ = null; } return this; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version expires.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public com.google.protobuf.Int64Value.Builder getNoncurrentDaysBuilder() { onChanged(); return getNoncurrentDaysFieldBuilder().getBuilder(); } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version expires.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public com.google.protobuf.Int64ValueOrBuilder getNoncurrentDaysOrBuilder() { if (noncurrentDaysBuilder_ != null) { return noncurrentDaysBuilder_.getMessageOrBuilder(); } else { return noncurrentDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : noncurrentDays_; } } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version expires.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getNoncurrentDaysFieldBuilder() { if (noncurrentDaysBuilder_ == null) { noncurrentDaysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getNoncurrentDays(), getParentForChildren(), isClean()); noncurrentDays_ = null; } return noncurrentDaysBuilder_; } @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.storage.v1.LifecycleRule.NoncurrentExpiration) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration) private static final yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NoncurrentExpiration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NoncurrentExpiration(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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NoncurrentTransitionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition) com.google.protobuf.MessageOrBuilder { /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version is transitioned.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return Whether the noncurrentDays field is set. */ boolean hasNoncurrentDays(); /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version is transitioned.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return The noncurrentDays. */ com.google.protobuf.Int64Value getNoncurrentDays(); /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version is transitioned.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ com.google.protobuf.Int64ValueOrBuilder getNoncurrentDaysOrBuilder(); /** *
       * Storage class to which a non-current version of an object is transitioned from standard storage.
       * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
       * to standard storage and transitions to or from ice storage are not allowed.
       * 
* * string storage_class = 2 [(.yandex.cloud.required) = true]; * @return The storageClass. */ java.lang.String getStorageClass(); /** *
       * Storage class to which a non-current version of an object is transitioned from standard storage.
       * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
       * to standard storage and transitions to or from ice storage are not allowed.
       * 
* * string storage_class = 2 [(.yandex.cloud.required) = true]; * @return The bytes for storageClass. */ com.google.protobuf.ByteString getStorageClassBytes(); } /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition} */ public static final class NoncurrentTransition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition) NoncurrentTransitionOrBuilder { private static final long serialVersionUID = 0L; // Use NoncurrentTransition.newBuilder() to construct. private NoncurrentTransition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NoncurrentTransition() { storageClass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NoncurrentTransition(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NoncurrentTransition( 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: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (noncurrentDays_ != null) { subBuilder = noncurrentDays_.toBuilder(); } noncurrentDays_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(noncurrentDays_); noncurrentDays_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); storageClass_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder.class); } public static final int NONCURRENT_DAYS_FIELD_NUMBER = 1; private com.google.protobuf.Int64Value noncurrentDays_; /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version is transitioned.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return Whether the noncurrentDays field is set. */ @java.lang.Override public boolean hasNoncurrentDays() { return noncurrentDays_ != null; } /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version is transitioned.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return The noncurrentDays. */ @java.lang.Override public com.google.protobuf.Int64Value getNoncurrentDays() { return noncurrentDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : noncurrentDays_; } /** *
       * Time period, in number of days since the version of an object was classified as non-current, after which the
       * version is transitioned.
       * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getNoncurrentDaysOrBuilder() { return getNoncurrentDays(); } public static final int STORAGE_CLASS_FIELD_NUMBER = 2; private volatile java.lang.Object storageClass_; /** *
       * Storage class to which a non-current version of an object is transitioned from standard storage.
       * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
       * to standard storage and transitions to or from ice storage are not allowed.
       * 
* * string storage_class = 2 [(.yandex.cloud.required) = true]; * @return The storageClass. */ @java.lang.Override public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; } } /** *
       * Storage class to which a non-current version of an object is transitioned from standard storage.
       * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
       * to standard storage and transitions to or from ice storage are not allowed.
       * 
* * string storage_class = 2 [(.yandex.cloud.required) = true]; * @return The bytes for storageClass. */ @java.lang.Override public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = 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 (noncurrentDays_ != null) { output.writeMessage(1, getNoncurrentDays()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, storageClass_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (noncurrentDays_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNoncurrentDays()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, storageClass_); } 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition other = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition) obj; if (hasNoncurrentDays() != other.hasNoncurrentDays()) return false; if (hasNoncurrentDays()) { if (!getNoncurrentDays() .equals(other.getNoncurrentDays())) return false; } if (!getStorageClass() .equals(other.getStorageClass())) 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(); if (hasNoncurrentDays()) { hash = (37 * hash) + NONCURRENT_DAYS_FIELD_NUMBER; hash = (53 * hash) + getNoncurrentDays().hashCode(); } hash = (37 * hash) + STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getStorageClass().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition 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; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition) yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.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(); if (noncurrentDaysBuilder_ == null) { noncurrentDays_ = null; } else { noncurrentDays_ = null; noncurrentDaysBuilder_ = null; } storageClass_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition build() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition result = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition(this); if (noncurrentDaysBuilder_ == null) { result.noncurrentDays_ = noncurrentDays_; } else { result.noncurrentDays_ = noncurrentDaysBuilder_.build(); } result.storageClass_ = storageClass_; 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.getDefaultInstance()) return this; if (other.hasNoncurrentDays()) { mergeNoncurrentDays(other.getNoncurrentDays()); } if (!other.getStorageClass().isEmpty()) { storageClass_ = other.storageClass_; 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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Int64Value noncurrentDays_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> noncurrentDaysBuilder_; /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version is transitioned.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return Whether the noncurrentDays field is set. */ public boolean hasNoncurrentDays() { return noncurrentDaysBuilder_ != null || noncurrentDays_ != null; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version is transitioned.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; * @return The noncurrentDays. */ public com.google.protobuf.Int64Value getNoncurrentDays() { if (noncurrentDaysBuilder_ == null) { return noncurrentDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : noncurrentDays_; } else { return noncurrentDaysBuilder_.getMessage(); } } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version is transitioned.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public Builder setNoncurrentDays(com.google.protobuf.Int64Value value) { if (noncurrentDaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } noncurrentDays_ = value; onChanged(); } else { noncurrentDaysBuilder_.setMessage(value); } return this; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version is transitioned.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public Builder setNoncurrentDays( com.google.protobuf.Int64Value.Builder builderForValue) { if (noncurrentDaysBuilder_ == null) { noncurrentDays_ = builderForValue.build(); onChanged(); } else { noncurrentDaysBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version is transitioned.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public Builder mergeNoncurrentDays(com.google.protobuf.Int64Value value) { if (noncurrentDaysBuilder_ == null) { if (noncurrentDays_ != null) { noncurrentDays_ = com.google.protobuf.Int64Value.newBuilder(noncurrentDays_).mergeFrom(value).buildPartial(); } else { noncurrentDays_ = value; } onChanged(); } else { noncurrentDaysBuilder_.mergeFrom(value); } return this; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version is transitioned.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public Builder clearNoncurrentDays() { if (noncurrentDaysBuilder_ == null) { noncurrentDays_ = null; onChanged(); } else { noncurrentDays_ = null; noncurrentDaysBuilder_ = null; } return this; } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version is transitioned.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public com.google.protobuf.Int64Value.Builder getNoncurrentDaysBuilder() { onChanged(); return getNoncurrentDaysFieldBuilder().getBuilder(); } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version is transitioned.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ public com.google.protobuf.Int64ValueOrBuilder getNoncurrentDaysOrBuilder() { if (noncurrentDaysBuilder_ != null) { return noncurrentDaysBuilder_.getMessageOrBuilder(); } else { return noncurrentDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : noncurrentDays_; } } /** *
         * Time period, in number of days since the version of an object was classified as non-current, after which the
         * version is transitioned.
         * 
* * .google.protobuf.Int64Value noncurrent_days = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getNoncurrentDaysFieldBuilder() { if (noncurrentDaysBuilder_ == null) { noncurrentDaysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getNoncurrentDays(), getParentForChildren(), isClean()); noncurrentDays_ = null; } return noncurrentDaysBuilder_; } private java.lang.Object storageClass_ = ""; /** *
         * Storage class to which a non-current version of an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 2 [(.yandex.cloud.required) = true]; * @return The storageClass. */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Storage class to which a non-current version of an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 2 [(.yandex.cloud.required) = true]; * @return The bytes for storageClass. */ public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Storage class to which a non-current version of an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 2 [(.yandex.cloud.required) = true]; * @param value The storageClass to set. * @return This builder for chaining. */ public Builder setStorageClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } storageClass_ = value; onChanged(); return this; } /** *
         * Storage class to which a non-current version of an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearStorageClass() { storageClass_ = getDefaultInstance().getStorageClass(); onChanged(); return this; } /** *
         * Storage class to which a non-current version of an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 2 [(.yandex.cloud.required) = true]; * @param value The bytes for storageClass to set. * @return This builder for chaining. */ public Builder setStorageClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = 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.storage.v1.LifecycleRule.NoncurrentTransition) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition) private static final yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NoncurrentTransition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NoncurrentTransition(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.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransitionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.LifecycleRule.Transition) com.google.protobuf.MessageOrBuilder { /** *
       * Specific date of object transition.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
       * transitioned immediately.
       * At most one of [date] and [days] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; * @return Whether the date field is set. */ boolean hasDate(); /** *
       * Specific date of object transition.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
       * transitioned immediately.
       * At most one of [date] and [days] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; * @return The date. */ com.google.protobuf.Timestamp getDate(); /** *
       * Specific date of object transition.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
       * transitioned immediately.
       * At most one of [date] and [days] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; */ com.google.protobuf.TimestampOrBuilder getDateOrBuilder(); /** *
       * Time period, in number of days from the creation or modification of the object, after which an object is
       * transitioned.
       * At most one of [days] and [date] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; * @return Whether the days field is set. */ boolean hasDays(); /** *
       * Time period, in number of days from the creation or modification of the object, after which an object is
       * transitioned.
       * At most one of [days] and [date] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; * @return The days. */ com.google.protobuf.Int64Value getDays(); /** *
       * Time period, in number of days from the creation or modification of the object, after which an object is
       * transitioned.
       * At most one of [days] and [date] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; */ com.google.protobuf.Int64ValueOrBuilder getDaysOrBuilder(); /** *
       * Storage class to which an object is transitioned from standard storage.
       * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
       * to standard storage and transitions to or from ice storage are not allowed.
       * 
* * string storage_class = 4 [(.yandex.cloud.required) = true]; * @return The storageClass. */ java.lang.String getStorageClass(); /** *
       * Storage class to which an object is transitioned from standard storage.
       * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
       * to standard storage and transitions to or from ice storage are not allowed.
       * 
* * string storage_class = 4 [(.yandex.cloud.required) = true]; * @return The bytes for storageClass. */ com.google.protobuf.ByteString getStorageClassBytes(); } /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.Transition} */ public static final class Transition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.LifecycleRule.Transition) TransitionOrBuilder { private static final long serialVersionUID = 0L; // Use Transition.newBuilder() to construct. private Transition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Transition() { storageClass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Transition(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Transition( 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: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (date_ != null) { subBuilder = date_.toBuilder(); } date_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(date_); date_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (days_ != null) { subBuilder = days_.toBuilder(); } days_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(days_); days_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); storageClass_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder.class); } public static final int DATE_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp date_; /** *
       * Specific date of object transition.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
       * transitioned immediately.
       * At most one of [date] and [days] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return date_ != null; } /** *
       * Specific date of object transition.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
       * transitioned immediately.
       * At most one of [date] and [days] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; * @return The date. */ @java.lang.Override public com.google.protobuf.Timestamp getDate() { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } /** *
       * Specific date of object transition.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
       * transitioned immediately.
       * At most one of [date] and [days] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { return getDate(); } public static final int DAYS_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value days_; /** *
       * Time period, in number of days from the creation or modification of the object, after which an object is
       * transitioned.
       * At most one of [days] and [date] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; * @return Whether the days field is set. */ @java.lang.Override public boolean hasDays() { return days_ != null; } /** *
       * Time period, in number of days from the creation or modification of the object, after which an object is
       * transitioned.
       * At most one of [days] and [date] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; * @return The days. */ @java.lang.Override public com.google.protobuf.Int64Value getDays() { return days_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : days_; } /** *
       * Time period, in number of days from the creation or modification of the object, after which an object is
       * transitioned.
       * At most one of [days] and [date] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDaysOrBuilder() { return getDays(); } public static final int STORAGE_CLASS_FIELD_NUMBER = 4; private volatile java.lang.Object storageClass_; /** *
       * Storage class to which an object is transitioned from standard storage.
       * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
       * to standard storage and transitions to or from ice storage are not allowed.
       * 
* * string storage_class = 4 [(.yandex.cloud.required) = true]; * @return The storageClass. */ @java.lang.Override public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; } } /** *
       * Storage class to which an object is transitioned from standard storage.
       * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
       * to standard storage and transitions to or from ice storage are not allowed.
       * 
* * string storage_class = 4 [(.yandex.cloud.required) = true]; * @return The bytes for storageClass. */ @java.lang.Override public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = 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 (date_ != null) { output.writeMessage(1, getDate()); } if (days_ != null) { output.writeMessage(2, getDays()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storageClass_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (date_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDate()); } if (days_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getDays()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storageClass_); } 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.storage.v1.BucketOuterClass.LifecycleRule.Transition)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition other = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition) obj; if (hasDate() != other.hasDate()) return false; if (hasDate()) { if (!getDate() .equals(other.getDate())) return false; } if (hasDays() != other.hasDays()) return false; if (hasDays()) { if (!getDays() .equals(other.getDays())) return false; } if (!getStorageClass() .equals(other.getStorageClass())) 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(); if (hasDate()) { hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate().hashCode(); } if (hasDays()) { hash = (37 * hash) + DAYS_FIELD_NUMBER; hash = (53 * hash) + getDays().hashCode(); } hash = (37 * hash) + STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getStorageClass().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition 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.storage.v1.BucketOuterClass.LifecycleRule.Transition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition 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.storage.v1.BucketOuterClass.LifecycleRule.Transition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition 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.storage.v1.BucketOuterClass.LifecycleRule.Transition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition 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.storage.v1.BucketOuterClass.LifecycleRule.Transition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition 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.storage.v1.BucketOuterClass.LifecycleRule.Transition 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; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.Transition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.LifecycleRule.Transition) yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.TransitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.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(); if (dateBuilder_ == null) { date_ = null; } else { date_ = null; dateBuilder_ = null; } if (daysBuilder_ == null) { days_ = null; } else { days_ = null; daysBuilder_ = null; } storageClass_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition build() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition result = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition(this); if (dateBuilder_ == null) { result.date_ = date_; } else { result.date_ = dateBuilder_.build(); } if (daysBuilder_ == null) { result.days_ = days_; } else { result.days_ = daysBuilder_.build(); } result.storageClass_ = storageClass_; 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.storage.v1.BucketOuterClass.LifecycleRule.Transition) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.getDefaultInstance()) return this; if (other.hasDate()) { mergeDate(other.getDate()); } if (other.hasDays()) { mergeDays(other.getDays()); } if (!other.getStorageClass().isEmpty()) { storageClass_ = other.storageClass_; 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.storage.v1.BucketOuterClass.LifecycleRule.Transition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp date_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dateBuilder_; /** *
         * Specific date of object transition.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
         * transitioned immediately.
         * At most one of [date] and [days] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; * @return Whether the date field is set. */ public boolean hasDate() { return dateBuilder_ != null || date_ != null; } /** *
         * Specific date of object transition.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
         * transitioned immediately.
         * At most one of [date] and [days] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; * @return The date. */ public com.google.protobuf.Timestamp getDate() { if (dateBuilder_ == null) { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } else { return dateBuilder_.getMessage(); } } /** *
         * Specific date of object transition.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
         * transitioned immediately.
         * At most one of [date] and [days] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public Builder setDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } date_ = value; onChanged(); } else { dateBuilder_.setMessage(value); } return this; } /** *
         * Specific date of object transition.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
         * transitioned immediately.
         * At most one of [date] and [days] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public Builder setDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (dateBuilder_ == null) { date_ = builderForValue.build(); onChanged(); } else { dateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Specific date of object transition.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
         * transitioned immediately.
         * At most one of [date] and [days] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public Builder mergeDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (date_ != null) { date_ = com.google.protobuf.Timestamp.newBuilder(date_).mergeFrom(value).buildPartial(); } else { date_ = value; } onChanged(); } else { dateBuilder_.mergeFrom(value); } return this; } /** *
         * Specific date of object transition.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
         * transitioned immediately.
         * At most one of [date] and [days] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public Builder clearDate() { if (dateBuilder_ == null) { date_ = null; onChanged(); } else { date_ = null; dateBuilder_ = null; } return this; } /** *
         * Specific date of object transition.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
         * transitioned immediately.
         * At most one of [date] and [days] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public com.google.protobuf.Timestamp.Builder getDateBuilder() { onChanged(); return getDateFieldBuilder().getBuilder(); } /** *
         * Specific date of object transition.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
         * transitioned immediately.
         * At most one of [date] and [days] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { if (dateBuilder_ != null) { return dateBuilder_.getMessageOrBuilder(); } else { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } } /** *
         * Specific date of object transition.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
         * transitioned immediately.
         * At most one of [date] and [days] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDateFieldBuilder() { if (dateBuilder_ == null) { dateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDate(), getParentForChildren(), isClean()); date_ = null; } return dateBuilder_; } private com.google.protobuf.Int64Value days_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> daysBuilder_; /** *
         * Time period, in number of days from the creation or modification of the object, after which an object is
         * transitioned.
         * At most one of [days] and [date] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; * @return Whether the days field is set. */ public boolean hasDays() { return daysBuilder_ != null || days_ != null; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object is
         * transitioned.
         * At most one of [days] and [date] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; * @return The days. */ public com.google.protobuf.Int64Value getDays() { if (daysBuilder_ == null) { return days_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : days_; } else { return daysBuilder_.getMessage(); } } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object is
         * transitioned.
         * At most one of [days] and [date] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public Builder setDays(com.google.protobuf.Int64Value value) { if (daysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } days_ = value; onChanged(); } else { daysBuilder_.setMessage(value); } return this; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object is
         * transitioned.
         * At most one of [days] and [date] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public Builder setDays( com.google.protobuf.Int64Value.Builder builderForValue) { if (daysBuilder_ == null) { days_ = builderForValue.build(); onChanged(); } else { daysBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object is
         * transitioned.
         * At most one of [days] and [date] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public Builder mergeDays(com.google.protobuf.Int64Value value) { if (daysBuilder_ == null) { if (days_ != null) { days_ = com.google.protobuf.Int64Value.newBuilder(days_).mergeFrom(value).buildPartial(); } else { days_ = value; } onChanged(); } else { daysBuilder_.mergeFrom(value); } return this; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object is
         * transitioned.
         * At most one of [days] and [date] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public Builder clearDays() { if (daysBuilder_ == null) { days_ = null; onChanged(); } else { days_ = null; daysBuilder_ = null; } return this; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object is
         * transitioned.
         * At most one of [days] and [date] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public com.google.protobuf.Int64Value.Builder getDaysBuilder() { onChanged(); return getDaysFieldBuilder().getBuilder(); } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object is
         * transitioned.
         * At most one of [days] and [date] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public com.google.protobuf.Int64ValueOrBuilder getDaysOrBuilder() { if (daysBuilder_ != null) { return daysBuilder_.getMessageOrBuilder(); } else { return days_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : days_; } } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object is
         * transitioned.
         * At most one of [days] and [date] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDaysFieldBuilder() { if (daysBuilder_ == null) { daysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getDays(), getParentForChildren(), isClean()); days_ = null; } return daysBuilder_; } private java.lang.Object storageClass_ = ""; /** *
         * Storage class to which an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 4 [(.yandex.cloud.required) = true]; * @return The storageClass. */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Storage class to which an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 4 [(.yandex.cloud.required) = true]; * @return The bytes for storageClass. */ public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Storage class to which an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 4 [(.yandex.cloud.required) = true]; * @param value The storageClass to set. * @return This builder for chaining. */ public Builder setStorageClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } storageClass_ = value; onChanged(); return this; } /** *
         * Storage class to which an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 4 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearStorageClass() { storageClass_ = getDefaultInstance().getStorageClass(); onChanged(); return this; } /** *
         * Storage class to which an object is transitioned from standard storage.
         * The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
         * to standard storage and transitions to or from ice storage are not allowed.
         * 
* * string storage_class = 4 [(.yandex.cloud.required) = true]; * @param value The bytes for storageClass to set. * @return This builder for chaining. */ public Builder setStorageClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = 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.storage.v1.LifecycleRule.Transition) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.LifecycleRule.Transition) private static final yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Transition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Transition(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.storage.v1.BucketOuterClass.LifecycleRule.Transition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExpirationOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.LifecycleRule.Expiration) com.google.protobuf.MessageOrBuilder { /** *
       * Specific date of object expiration.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
       * immediately.
       * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; * @return Whether the date field is set. */ boolean hasDate(); /** *
       * Specific date of object expiration.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
       * immediately.
       * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; * @return The date. */ com.google.protobuf.Timestamp getDate(); /** *
       * Specific date of object expiration.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
       * immediately.
       * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; */ com.google.protobuf.TimestampOrBuilder getDateOrBuilder(); /** *
       * Time period, in number of days from the creation or modification of the object, after which an object expires.
       * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; * @return Whether the days field is set. */ boolean hasDays(); /** *
       * Time period, in number of days from the creation or modification of the object, after which an object expires.
       * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; * @return The days. */ com.google.protobuf.Int64Value getDays(); /** *
       * Time period, in number of days from the creation or modification of the object, after which an object expires.
       * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; */ com.google.protobuf.Int64ValueOrBuilder getDaysOrBuilder(); /** *
       * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
       * delete marker) is removed at the object's expiration.
       * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
       * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; * @return Whether the expiredObjectDeleteMarker field is set. */ boolean hasExpiredObjectDeleteMarker(); /** *
       * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
       * delete marker) is removed at the object's expiration.
       * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
       * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; * @return The expiredObjectDeleteMarker. */ com.google.protobuf.BoolValue getExpiredObjectDeleteMarker(); /** *
       * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
       * delete marker) is removed at the object's expiration.
       * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
       * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; */ com.google.protobuf.BoolValueOrBuilder getExpiredObjectDeleteMarkerOrBuilder(); } /** * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.Expiration} */ public static final class Expiration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.LifecycleRule.Expiration) ExpirationOrBuilder { private static final long serialVersionUID = 0L; // Use Expiration.newBuilder() to construct. private Expiration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Expiration() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Expiration(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Expiration( 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: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (date_ != null) { subBuilder = date_.toBuilder(); } date_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(date_); date_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (days_ != null) { subBuilder = days_.toBuilder(); } days_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(days_); days_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (expiredObjectDeleteMarker_ != null) { subBuilder = expiredObjectDeleteMarker_.toBuilder(); } expiredObjectDeleteMarker_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expiredObjectDeleteMarker_); expiredObjectDeleteMarker_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.Builder.class); } public static final int DATE_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp date_; /** *
       * Specific date of object expiration.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
       * immediately.
       * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return date_ != null; } /** *
       * Specific date of object expiration.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
       * immediately.
       * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; * @return The date. */ @java.lang.Override public com.google.protobuf.Timestamp getDate() { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } /** *
       * Specific date of object expiration.
       * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
       * immediately.
       * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Timestamp date = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { return getDate(); } public static final int DAYS_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value days_; /** *
       * Time period, in number of days from the creation or modification of the object, after which an object expires.
       * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; * @return Whether the days field is set. */ @java.lang.Override public boolean hasDays() { return days_ != null; } /** *
       * Time period, in number of days from the creation or modification of the object, after which an object expires.
       * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; * @return The days. */ @java.lang.Override public com.google.protobuf.Int64Value getDays() { return days_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : days_; } /** *
       * Time period, in number of days from the creation or modification of the object, after which an object expires.
       * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
       * 
* * .google.protobuf.Int64Value days = 2; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDaysOrBuilder() { return getDays(); } public static final int EXPIRED_OBJECT_DELETE_MARKER_FIELD_NUMBER = 3; private com.google.protobuf.BoolValue expiredObjectDeleteMarker_; /** *
       * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
       * delete marker) is removed at the object's expiration.
       * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
       * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; * @return Whether the expiredObjectDeleteMarker field is set. */ @java.lang.Override public boolean hasExpiredObjectDeleteMarker() { return expiredObjectDeleteMarker_ != null; } /** *
       * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
       * delete marker) is removed at the object's expiration.
       * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
       * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; * @return The expiredObjectDeleteMarker. */ @java.lang.Override public com.google.protobuf.BoolValue getExpiredObjectDeleteMarker() { return expiredObjectDeleteMarker_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expiredObjectDeleteMarker_; } /** *
       * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
       * delete marker) is removed at the object's expiration.
       * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
       * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getExpiredObjectDeleteMarkerOrBuilder() { return getExpiredObjectDeleteMarker(); } 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 (date_ != null) { output.writeMessage(1, getDate()); } if (days_ != null) { output.writeMessage(2, getDays()); } if (expiredObjectDeleteMarker_ != null) { output.writeMessage(3, getExpiredObjectDeleteMarker()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (date_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDate()); } if (days_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getDays()); } if (expiredObjectDeleteMarker_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExpiredObjectDeleteMarker()); } 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.storage.v1.BucketOuterClass.LifecycleRule.Expiration)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration other = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration) obj; if (hasDate() != other.hasDate()) return false; if (hasDate()) { if (!getDate() .equals(other.getDate())) return false; } if (hasDays() != other.hasDays()) return false; if (hasDays()) { if (!getDays() .equals(other.getDays())) return false; } if (hasExpiredObjectDeleteMarker() != other.hasExpiredObjectDeleteMarker()) return false; if (hasExpiredObjectDeleteMarker()) { if (!getExpiredObjectDeleteMarker() .equals(other.getExpiredObjectDeleteMarker())) 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(); if (hasDate()) { hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate().hashCode(); } if (hasDays()) { hash = (37 * hash) + DAYS_FIELD_NUMBER; hash = (53 * hash) + getDays().hashCode(); } if (hasExpiredObjectDeleteMarker()) { hash = (37 * hash) + EXPIRED_OBJECT_DELETE_MARKER_FIELD_NUMBER; hash = (53 * hash) + getExpiredObjectDeleteMarker().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration 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.storage.v1.BucketOuterClass.LifecycleRule.Expiration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration 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.storage.v1.BucketOuterClass.LifecycleRule.Expiration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration 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.storage.v1.BucketOuterClass.LifecycleRule.Expiration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration 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.storage.v1.BucketOuterClass.LifecycleRule.Expiration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration 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.storage.v1.BucketOuterClass.LifecycleRule.Expiration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.Expiration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.LifecycleRule.Expiration) yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.ExpirationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.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(); if (dateBuilder_ == null) { date_ = null; } else { date_ = null; dateBuilder_ = null; } if (daysBuilder_ == null) { days_ = null; } else { days_ = null; daysBuilder_ = null; } if (expiredObjectDeleteMarkerBuilder_ == null) { expiredObjectDeleteMarker_ = null; } else { expiredObjectDeleteMarker_ = null; expiredObjectDeleteMarkerBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration build() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration result = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration(this); if (dateBuilder_ == null) { result.date_ = date_; } else { result.date_ = dateBuilder_.build(); } if (daysBuilder_ == null) { result.days_ = days_; } else { result.days_ = daysBuilder_.build(); } if (expiredObjectDeleteMarkerBuilder_ == null) { result.expiredObjectDeleteMarker_ = expiredObjectDeleteMarker_; } else { result.expiredObjectDeleteMarker_ = expiredObjectDeleteMarkerBuilder_.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.storage.v1.BucketOuterClass.LifecycleRule.Expiration) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.getDefaultInstance()) return this; if (other.hasDate()) { mergeDate(other.getDate()); } if (other.hasDays()) { mergeDays(other.getDays()); } if (other.hasExpiredObjectDeleteMarker()) { mergeExpiredObjectDeleteMarker(other.getExpiredObjectDeleteMarker()); } 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.storage.v1.BucketOuterClass.LifecycleRule.Expiration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp date_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dateBuilder_; /** *
         * Specific date of object expiration.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
         * immediately.
         * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; * @return Whether the date field is set. */ public boolean hasDate() { return dateBuilder_ != null || date_ != null; } /** *
         * Specific date of object expiration.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
         * immediately.
         * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; * @return The date. */ public com.google.protobuf.Timestamp getDate() { if (dateBuilder_ == null) { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } else { return dateBuilder_.getMessage(); } } /** *
         * Specific date of object expiration.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
         * immediately.
         * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public Builder setDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } date_ = value; onChanged(); } else { dateBuilder_.setMessage(value); } return this; } /** *
         * Specific date of object expiration.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
         * immediately.
         * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public Builder setDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (dateBuilder_ == null) { date_ = builderForValue.build(); onChanged(); } else { dateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Specific date of object expiration.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
         * immediately.
         * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public Builder mergeDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (date_ != null) { date_ = com.google.protobuf.Timestamp.newBuilder(date_).mergeFrom(value).buildPartial(); } else { date_ = value; } onChanged(); } else { dateBuilder_.mergeFrom(value); } return this; } /** *
         * Specific date of object expiration.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
         * immediately.
         * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public Builder clearDate() { if (dateBuilder_ == null) { date_ = null; onChanged(); } else { date_ = null; dateBuilder_ = null; } return this; } /** *
         * Specific date of object expiration.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
         * immediately.
         * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public com.google.protobuf.Timestamp.Builder getDateBuilder() { onChanged(); return getDateFieldBuilder().getBuilder(); } /** *
         * Specific date of object expiration.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
         * immediately.
         * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { if (dateBuilder_ != null) { return dateBuilder_.getMessageOrBuilder(); } else { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } } /** *
         * Specific date of object expiration.
         * The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
         * immediately.
         * Exactly one of [date], [days], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Timestamp date = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDateFieldBuilder() { if (dateBuilder_ == null) { dateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDate(), getParentForChildren(), isClean()); date_ = null; } return dateBuilder_; } private com.google.protobuf.Int64Value days_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> daysBuilder_; /** *
         * Time period, in number of days from the creation or modification of the object, after which an object expires.
         * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; * @return Whether the days field is set. */ public boolean hasDays() { return daysBuilder_ != null || days_ != null; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object expires.
         * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; * @return The days. */ public com.google.protobuf.Int64Value getDays() { if (daysBuilder_ == null) { return days_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : days_; } else { return daysBuilder_.getMessage(); } } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object expires.
         * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public Builder setDays(com.google.protobuf.Int64Value value) { if (daysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } days_ = value; onChanged(); } else { daysBuilder_.setMessage(value); } return this; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object expires.
         * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public Builder setDays( com.google.protobuf.Int64Value.Builder builderForValue) { if (daysBuilder_ == null) { days_ = builderForValue.build(); onChanged(); } else { daysBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object expires.
         * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public Builder mergeDays(com.google.protobuf.Int64Value value) { if (daysBuilder_ == null) { if (days_ != null) { days_ = com.google.protobuf.Int64Value.newBuilder(days_).mergeFrom(value).buildPartial(); } else { days_ = value; } onChanged(); } else { daysBuilder_.mergeFrom(value); } return this; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object expires.
         * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public Builder clearDays() { if (daysBuilder_ == null) { days_ = null; onChanged(); } else { days_ = null; daysBuilder_ = null; } return this; } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object expires.
         * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public com.google.protobuf.Int64Value.Builder getDaysBuilder() { onChanged(); return getDaysFieldBuilder().getBuilder(); } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object expires.
         * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ public com.google.protobuf.Int64ValueOrBuilder getDaysOrBuilder() { if (daysBuilder_ != null) { return daysBuilder_.getMessageOrBuilder(); } else { return days_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : days_; } } /** *
         * Time period, in number of days from the creation or modification of the object, after which an object expires.
         * Exactly one of [days], [date], and [expired_object_delete_marker] fields can be specified.
         * 
* * .google.protobuf.Int64Value days = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDaysFieldBuilder() { if (daysBuilder_ == null) { daysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getDays(), getParentForChildren(), isClean()); days_ = null; } return daysBuilder_; } private com.google.protobuf.BoolValue expiredObjectDeleteMarker_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> expiredObjectDeleteMarkerBuilder_; /** *
         * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
         * delete marker) is removed at the object's expiration.
         * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
         * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; * @return Whether the expiredObjectDeleteMarker field is set. */ public boolean hasExpiredObjectDeleteMarker() { return expiredObjectDeleteMarkerBuilder_ != null || expiredObjectDeleteMarker_ != null; } /** *
         * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
         * delete marker) is removed at the object's expiration.
         * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
         * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; * @return The expiredObjectDeleteMarker. */ public com.google.protobuf.BoolValue getExpiredObjectDeleteMarker() { if (expiredObjectDeleteMarkerBuilder_ == null) { return expiredObjectDeleteMarker_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expiredObjectDeleteMarker_; } else { return expiredObjectDeleteMarkerBuilder_.getMessage(); } } /** *
         * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
         * delete marker) is removed at the object's expiration.
         * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
         * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; */ public Builder setExpiredObjectDeleteMarker(com.google.protobuf.BoolValue value) { if (expiredObjectDeleteMarkerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expiredObjectDeleteMarker_ = value; onChanged(); } else { expiredObjectDeleteMarkerBuilder_.setMessage(value); } return this; } /** *
         * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
         * delete marker) is removed at the object's expiration.
         * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
         * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; */ public Builder setExpiredObjectDeleteMarker( com.google.protobuf.BoolValue.Builder builderForValue) { if (expiredObjectDeleteMarkerBuilder_ == null) { expiredObjectDeleteMarker_ = builderForValue.build(); onChanged(); } else { expiredObjectDeleteMarkerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
         * delete marker) is removed at the object's expiration.
         * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
         * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; */ public Builder mergeExpiredObjectDeleteMarker(com.google.protobuf.BoolValue value) { if (expiredObjectDeleteMarkerBuilder_ == null) { if (expiredObjectDeleteMarker_ != null) { expiredObjectDeleteMarker_ = com.google.protobuf.BoolValue.newBuilder(expiredObjectDeleteMarker_).mergeFrom(value).buildPartial(); } else { expiredObjectDeleteMarker_ = value; } onChanged(); } else { expiredObjectDeleteMarkerBuilder_.mergeFrom(value); } return this; } /** *
         * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
         * delete marker) is removed at the object's expiration.
         * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
         * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; */ public Builder clearExpiredObjectDeleteMarker() { if (expiredObjectDeleteMarkerBuilder_ == null) { expiredObjectDeleteMarker_ = null; onChanged(); } else { expiredObjectDeleteMarker_ = null; expiredObjectDeleteMarkerBuilder_ = null; } return this; } /** *
         * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
         * delete marker) is removed at the object's expiration.
         * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
         * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; */ public com.google.protobuf.BoolValue.Builder getExpiredObjectDeleteMarkerBuilder() { onChanged(); return getExpiredObjectDeleteMarkerFieldBuilder().getBuilder(); } /** *
         * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
         * delete marker) is removed at the object's expiration.
         * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
         * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; */ public com.google.protobuf.BoolValueOrBuilder getExpiredObjectDeleteMarkerOrBuilder() { if (expiredObjectDeleteMarkerBuilder_ != null) { return expiredObjectDeleteMarkerBuilder_.getMessageOrBuilder(); } else { return expiredObjectDeleteMarker_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expiredObjectDeleteMarker_; } } /** *
         * Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
         * delete marker) is removed at the object's expiration.
         * Exactly one of [expired_object_delete_marker], [date], and [days] fields can be specified.
         * 
* * .google.protobuf.BoolValue expired_object_delete_marker = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getExpiredObjectDeleteMarkerFieldBuilder() { if (expiredObjectDeleteMarkerBuilder_ == null) { expiredObjectDeleteMarkerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getExpiredObjectDeleteMarker(), getParentForChildren(), isClean()); expiredObjectDeleteMarker_ = null; } return expiredObjectDeleteMarkerBuilder_; } @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.storage.v1.LifecycleRule.Expiration) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.LifecycleRule.Expiration) private static final yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Expiration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Expiration(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.storage.v1.BucketOuterClass.LifecycleRule.Expiration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RuleFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.LifecycleRule.RuleFilter) com.google.protobuf.MessageOrBuilder { /** *
       * Key prefix that the object must have in order for the rule to apply.
       * 
* * string prefix = 1; * @return The prefix. */ java.lang.String getPrefix(); /** *
       * Key prefix that the object must have in order for the rule to apply.
       * 
* * string prefix = 1; * @return The bytes for prefix. */ com.google.protobuf.ByteString getPrefixBytes(); /** *
       * Size that the object must be greater.
       * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; * @return Whether the objectSizeGreaterThan field is set. */ boolean hasObjectSizeGreaterThan(); /** *
       * Size that the object must be greater.
       * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; * @return The objectSizeGreaterThan. */ com.google.protobuf.Int64Value getObjectSizeGreaterThan(); /** *
       * Size that the object must be greater.
       * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; */ com.google.protobuf.Int64ValueOrBuilder getObjectSizeGreaterThanOrBuilder(); /** *
       * Size that the object must be less t.
       * 
* * .google.protobuf.Int64Value object_size_less_than = 3; * @return Whether the objectSizeLessThan field is set. */ boolean hasObjectSizeLessThan(); /** *
       * Size that the object must be less t.
       * 
* * .google.protobuf.Int64Value object_size_less_than = 3; * @return The objectSizeLessThan. */ com.google.protobuf.Int64Value getObjectSizeLessThan(); /** *
       * Size that the object must be less t.
       * 
* * .google.protobuf.Int64Value object_size_less_than = 3; */ com.google.protobuf.Int64ValueOrBuilder getObjectSizeLessThanOrBuilder(); } /** * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.RuleFilter} */ public static final class RuleFilter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.LifecycleRule.RuleFilter) RuleFilterOrBuilder { private static final long serialVersionUID = 0L; // Use RuleFilter.newBuilder() to construct. private RuleFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RuleFilter() { prefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RuleFilter(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RuleFilter( 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(); prefix_ = s; break; } case 18: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (objectSizeGreaterThan_ != null) { subBuilder = objectSizeGreaterThan_.toBuilder(); } objectSizeGreaterThan_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objectSizeGreaterThan_); objectSizeGreaterThan_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (objectSizeLessThan_ != null) { subBuilder = objectSizeLessThan_.toBuilder(); } objectSizeLessThan_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objectSizeLessThan_); objectSizeLessThan_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.Builder.class); } public static final int PREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object prefix_; /** *
       * Key prefix that the object must have in order for the rule to apply.
       * 
* * string prefix = 1; * @return The prefix. */ @java.lang.Override public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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(); prefix_ = s; return s; } } /** *
       * Key prefix that the object must have in order for the rule to apply.
       * 
* * string prefix = 1; * @return The bytes for prefix. */ @java.lang.Override public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECT_SIZE_GREATER_THAN_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value objectSizeGreaterThan_; /** *
       * Size that the object must be greater.
       * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; * @return Whether the objectSizeGreaterThan field is set. */ @java.lang.Override public boolean hasObjectSizeGreaterThan() { return objectSizeGreaterThan_ != null; } /** *
       * Size that the object must be greater.
       * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; * @return The objectSizeGreaterThan. */ @java.lang.Override public com.google.protobuf.Int64Value getObjectSizeGreaterThan() { return objectSizeGreaterThan_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : objectSizeGreaterThan_; } /** *
       * Size that the object must be greater.
       * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getObjectSizeGreaterThanOrBuilder() { return getObjectSizeGreaterThan(); } public static final int OBJECT_SIZE_LESS_THAN_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value objectSizeLessThan_; /** *
       * Size that the object must be less t.
       * 
* * .google.protobuf.Int64Value object_size_less_than = 3; * @return Whether the objectSizeLessThan field is set. */ @java.lang.Override public boolean hasObjectSizeLessThan() { return objectSizeLessThan_ != null; } /** *
       * Size that the object must be less t.
       * 
* * .google.protobuf.Int64Value object_size_less_than = 3; * @return The objectSizeLessThan. */ @java.lang.Override public com.google.protobuf.Int64Value getObjectSizeLessThan() { return objectSizeLessThan_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : objectSizeLessThan_; } /** *
       * Size that the object must be less t.
       * 
* * .google.protobuf.Int64Value object_size_less_than = 3; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getObjectSizeLessThanOrBuilder() { return getObjectSizeLessThan(); } 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(prefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, prefix_); } if (objectSizeGreaterThan_ != null) { output.writeMessage(2, getObjectSizeGreaterThan()); } if (objectSizeLessThan_ != null) { output.writeMessage(3, getObjectSizeLessThan()); } 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(prefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, prefix_); } if (objectSizeGreaterThan_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getObjectSizeGreaterThan()); } if (objectSizeLessThan_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getObjectSizeLessThan()); } 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.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter other = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter) obj; if (!getPrefix() .equals(other.getPrefix())) return false; if (hasObjectSizeGreaterThan() != other.hasObjectSizeGreaterThan()) return false; if (hasObjectSizeGreaterThan()) { if (!getObjectSizeGreaterThan() .equals(other.getObjectSizeGreaterThan())) return false; } if (hasObjectSizeLessThan() != other.hasObjectSizeLessThan()) return false; if (hasObjectSizeLessThan()) { if (!getObjectSizeLessThan() .equals(other.getObjectSizeLessThan())) 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) + PREFIX_FIELD_NUMBER; hash = (53 * hash) + getPrefix().hashCode(); if (hasObjectSizeGreaterThan()) { hash = (37 * hash) + OBJECT_SIZE_GREATER_THAN_FIELD_NUMBER; hash = (53 * hash) + getObjectSizeGreaterThan().hashCode(); } if (hasObjectSizeLessThan()) { hash = (37 * hash) + OBJECT_SIZE_LESS_THAN_FIELD_NUMBER; hash = (53 * hash) + getObjectSizeLessThan().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter 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.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter 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.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter 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.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter 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.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter 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.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule.RuleFilter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.LifecycleRule.RuleFilter) yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.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(); prefix_ = ""; if (objectSizeGreaterThanBuilder_ == null) { objectSizeGreaterThan_ = null; } else { objectSizeGreaterThan_ = null; objectSizeGreaterThanBuilder_ = null; } if (objectSizeLessThanBuilder_ == null) { objectSizeLessThan_ = null; } else { objectSizeLessThan_ = null; objectSizeLessThanBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter build() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter result = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter(this); result.prefix_ = prefix_; if (objectSizeGreaterThanBuilder_ == null) { result.objectSizeGreaterThan_ = objectSizeGreaterThan_; } else { result.objectSizeGreaterThan_ = objectSizeGreaterThanBuilder_.build(); } if (objectSizeLessThanBuilder_ == null) { result.objectSizeLessThan_ = objectSizeLessThan_; } else { result.objectSizeLessThan_ = objectSizeLessThanBuilder_.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.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.getDefaultInstance()) return this; if (!other.getPrefix().isEmpty()) { prefix_ = other.prefix_; onChanged(); } if (other.hasObjectSizeGreaterThan()) { mergeObjectSizeGreaterThan(other.getObjectSizeGreaterThan()); } if (other.hasObjectSizeLessThan()) { mergeObjectSizeLessThan(other.getObjectSizeLessThan()); } 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.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object prefix_ = ""; /** *
         * Key prefix that the object must have in order for the rule to apply.
         * 
* * string prefix = 1; * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Key prefix that the object must have in order for the rule to apply.
         * 
* * string prefix = 1; * @return The bytes for prefix. */ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Key prefix that the object must have in order for the rule to apply.
         * 
* * string prefix = 1; * @param value The prefix to set. * @return This builder for chaining. */ public Builder setPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } prefix_ = value; onChanged(); return this; } /** *
         * Key prefix that the object must have in order for the rule to apply.
         * 
* * string prefix = 1; * @return This builder for chaining. */ public Builder clearPrefix() { prefix_ = getDefaultInstance().getPrefix(); onChanged(); return this; } /** *
         * Key prefix that the object must have in order for the rule to apply.
         * 
* * string prefix = 1; * @param value The bytes for prefix to set. * @return This builder for chaining. */ public Builder setPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; onChanged(); return this; } private com.google.protobuf.Int64Value objectSizeGreaterThan_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> objectSizeGreaterThanBuilder_; /** *
         * Size that the object must be greater.
         * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; * @return Whether the objectSizeGreaterThan field is set. */ public boolean hasObjectSizeGreaterThan() { return objectSizeGreaterThanBuilder_ != null || objectSizeGreaterThan_ != null; } /** *
         * Size that the object must be greater.
         * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; * @return The objectSizeGreaterThan. */ public com.google.protobuf.Int64Value getObjectSizeGreaterThan() { if (objectSizeGreaterThanBuilder_ == null) { return objectSizeGreaterThan_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : objectSizeGreaterThan_; } else { return objectSizeGreaterThanBuilder_.getMessage(); } } /** *
         * Size that the object must be greater.
         * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; */ public Builder setObjectSizeGreaterThan(com.google.protobuf.Int64Value value) { if (objectSizeGreaterThanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } objectSizeGreaterThan_ = value; onChanged(); } else { objectSizeGreaterThanBuilder_.setMessage(value); } return this; } /** *
         * Size that the object must be greater.
         * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; */ public Builder setObjectSizeGreaterThan( com.google.protobuf.Int64Value.Builder builderForValue) { if (objectSizeGreaterThanBuilder_ == null) { objectSizeGreaterThan_ = builderForValue.build(); onChanged(); } else { objectSizeGreaterThanBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Size that the object must be greater.
         * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; */ public Builder mergeObjectSizeGreaterThan(com.google.protobuf.Int64Value value) { if (objectSizeGreaterThanBuilder_ == null) { if (objectSizeGreaterThan_ != null) { objectSizeGreaterThan_ = com.google.protobuf.Int64Value.newBuilder(objectSizeGreaterThan_).mergeFrom(value).buildPartial(); } else { objectSizeGreaterThan_ = value; } onChanged(); } else { objectSizeGreaterThanBuilder_.mergeFrom(value); } return this; } /** *
         * Size that the object must be greater.
         * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; */ public Builder clearObjectSizeGreaterThan() { if (objectSizeGreaterThanBuilder_ == null) { objectSizeGreaterThan_ = null; onChanged(); } else { objectSizeGreaterThan_ = null; objectSizeGreaterThanBuilder_ = null; } return this; } /** *
         * Size that the object must be greater.
         * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; */ public com.google.protobuf.Int64Value.Builder getObjectSizeGreaterThanBuilder() { onChanged(); return getObjectSizeGreaterThanFieldBuilder().getBuilder(); } /** *
         * Size that the object must be greater.
         * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; */ public com.google.protobuf.Int64ValueOrBuilder getObjectSizeGreaterThanOrBuilder() { if (objectSizeGreaterThanBuilder_ != null) { return objectSizeGreaterThanBuilder_.getMessageOrBuilder(); } else { return objectSizeGreaterThan_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : objectSizeGreaterThan_; } } /** *
         * Size that the object must be greater.
         * 
* * .google.protobuf.Int64Value object_size_greater_than = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getObjectSizeGreaterThanFieldBuilder() { if (objectSizeGreaterThanBuilder_ == null) { objectSizeGreaterThanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getObjectSizeGreaterThan(), getParentForChildren(), isClean()); objectSizeGreaterThan_ = null; } return objectSizeGreaterThanBuilder_; } private com.google.protobuf.Int64Value objectSizeLessThan_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> objectSizeLessThanBuilder_; /** *
         * Size that the object must be less t.
         * 
* * .google.protobuf.Int64Value object_size_less_than = 3; * @return Whether the objectSizeLessThan field is set. */ public boolean hasObjectSizeLessThan() { return objectSizeLessThanBuilder_ != null || objectSizeLessThan_ != null; } /** *
         * Size that the object must be less t.
         * 
* * .google.protobuf.Int64Value object_size_less_than = 3; * @return The objectSizeLessThan. */ public com.google.protobuf.Int64Value getObjectSizeLessThan() { if (objectSizeLessThanBuilder_ == null) { return objectSizeLessThan_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : objectSizeLessThan_; } else { return objectSizeLessThanBuilder_.getMessage(); } } /** *
         * Size that the object must be less t.
         * 
* * .google.protobuf.Int64Value object_size_less_than = 3; */ public Builder setObjectSizeLessThan(com.google.protobuf.Int64Value value) { if (objectSizeLessThanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } objectSizeLessThan_ = value; onChanged(); } else { objectSizeLessThanBuilder_.setMessage(value); } return this; } /** *
         * Size that the object must be less t.
         * 
* * .google.protobuf.Int64Value object_size_less_than = 3; */ public Builder setObjectSizeLessThan( com.google.protobuf.Int64Value.Builder builderForValue) { if (objectSizeLessThanBuilder_ == null) { objectSizeLessThan_ = builderForValue.build(); onChanged(); } else { objectSizeLessThanBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Size that the object must be less t.
         * 
* * .google.protobuf.Int64Value object_size_less_than = 3; */ public Builder mergeObjectSizeLessThan(com.google.protobuf.Int64Value value) { if (objectSizeLessThanBuilder_ == null) { if (objectSizeLessThan_ != null) { objectSizeLessThan_ = com.google.protobuf.Int64Value.newBuilder(objectSizeLessThan_).mergeFrom(value).buildPartial(); } else { objectSizeLessThan_ = value; } onChanged(); } else { objectSizeLessThanBuilder_.mergeFrom(value); } return this; } /** *
         * Size that the object must be less t.
         * 
* * .google.protobuf.Int64Value object_size_less_than = 3; */ public Builder clearObjectSizeLessThan() { if (objectSizeLessThanBuilder_ == null) { objectSizeLessThan_ = null; onChanged(); } else { objectSizeLessThan_ = null; objectSizeLessThanBuilder_ = null; } return this; } /** *
         * Size that the object must be less t.
         * 
* * .google.protobuf.Int64Value object_size_less_than = 3; */ public com.google.protobuf.Int64Value.Builder getObjectSizeLessThanBuilder() { onChanged(); return getObjectSizeLessThanFieldBuilder().getBuilder(); } /** *
         * Size that the object must be less t.
         * 
* * .google.protobuf.Int64Value object_size_less_than = 3; */ public com.google.protobuf.Int64ValueOrBuilder getObjectSizeLessThanOrBuilder() { if (objectSizeLessThanBuilder_ != null) { return objectSizeLessThanBuilder_.getMessageOrBuilder(); } else { return objectSizeLessThan_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : objectSizeLessThan_; } } /** *
         * Size that the object must be less t.
         * 
* * .google.protobuf.Int64Value object_size_less_than = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getObjectSizeLessThanFieldBuilder() { if (objectSizeLessThanBuilder_ == null) { objectSizeLessThanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getObjectSizeLessThan(), getParentForChildren(), isClean()); objectSizeLessThan_ = null; } return objectSizeLessThanBuilder_; } @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.storage.v1.LifecycleRule.RuleFilter) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.LifecycleRule.RuleFilter) private static final yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RuleFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RuleFilter(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.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private com.google.protobuf.StringValue id_; /** *
     * ID of the rule. Provided by the client or generated at creation time.
     * 
* * .google.protobuf.StringValue id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return id_ != null; } /** *
     * ID of the rule. Provided by the client or generated at creation time.
     * 
* * .google.protobuf.StringValue id = 1; * @return The id. */ @java.lang.Override public com.google.protobuf.StringValue getId() { return id_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : id_; } /** *
     * ID of the rule. Provided by the client or generated at creation time.
     * 
* * .google.protobuf.StringValue id = 1; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getIdOrBuilder() { return getId(); } public static final int ENABLED_FIELD_NUMBER = 2; private boolean enabled_; /** *
     * Indicates whether the rule is in effect.
     * 
* * bool enabled = 2; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } public static final int FILTER_FIELD_NUMBER = 3; private yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter filter_; /** *
     * Filter that identifies the objects to which the rule applies.
     * If not specified, the rule applies to all objects in the bucket.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; * @return Whether the filter field is set. */ @java.lang.Override public boolean hasFilter() { return filter_ != null; } /** *
     * Filter that identifies the objects to which the rule applies.
     * If not specified, the rule applies to all objects in the bucket.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; * @return The filter. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter getFilter() { return filter_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.getDefaultInstance() : filter_; } /** *
     * Filter that identifies the objects to which the rule applies.
     * If not specified, the rule applies to all objects in the bucket.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilterOrBuilder getFilterOrBuilder() { return getFilter(); } public static final int EXPIRATION_FIELD_NUMBER = 4; private yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration expiration_; /** *
     * Expiration rule.
     * The expiration of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
     * recovered.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
     * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
     * the current version of the object.
     * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
     * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
     * delete marker becomes the current version of the object.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; * @return Whether the expiration field is set. */ @java.lang.Override public boolean hasExpiration() { return expiration_ != null; } /** *
     * Expiration rule.
     * The expiration of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
     * recovered.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
     * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
     * the current version of the object.
     * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
     * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
     * delete marker becomes the current version of the object.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; * @return The expiration. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration getExpiration() { return expiration_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.getDefaultInstance() : expiration_; } /** *
     * Expiration rule.
     * The expiration of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
     * recovered.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
     * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
     * the current version of the object.
     * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
     * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
     * delete marker becomes the current version of the object.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.ExpirationOrBuilder getExpirationOrBuilder() { return getExpiration(); } public static final int TRANSITIONS_FIELD_NUMBER = 5; private java.util.List transitions_; /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ @java.lang.Override public java.util.List getTransitionsList() { return transitions_; } /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ @java.lang.Override public java.util.List getTransitionsOrBuilderList() { return transitions_; } /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ @java.lang.Override public int getTransitionsCount() { return transitions_.size(); } /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition getTransitions(int index) { return transitions_.get(index); } /** *
     * List of transition rules.
     * The transition of an object is described as follows.
     * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
     * specified storage class.
     * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
     * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.TransitionOrBuilder getTransitionsOrBuilder( int index) { return transitions_.get(index); } public static final int ABORT_INCOMPLETE_MULTIPART_UPLOAD_FIELD_NUMBER = 6; private yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays abortIncompleteMultipartUpload_; /** *
     * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; * @return Whether the abortIncompleteMultipartUpload field is set. */ @java.lang.Override public boolean hasAbortIncompleteMultipartUpload() { return abortIncompleteMultipartUpload_ != null; } /** *
     * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; * @return The abortIncompleteMultipartUpload. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays getAbortIncompleteMultipartUpload() { return abortIncompleteMultipartUpload_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.getDefaultInstance() : abortIncompleteMultipartUpload_; } /** *
     * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDaysOrBuilder getAbortIncompleteMultipartUploadOrBuilder() { return getAbortIncompleteMultipartUpload(); } public static final int NONCURRENT_EXPIRATION_FIELD_NUMBER = 7; private yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration noncurrentExpiration_; /** *
     * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
     * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At expiration, the non-current version of the object is deleted and cannot be recovered.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; * @return Whether the noncurrentExpiration field is set. */ @java.lang.Override public boolean hasNoncurrentExpiration() { return noncurrentExpiration_ != null; } /** *
     * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
     * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At expiration, the non-current version of the object is deleted and cannot be recovered.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; * @return The noncurrentExpiration. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration getNoncurrentExpiration() { return noncurrentExpiration_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.getDefaultInstance() : noncurrentExpiration_; } /** *
     * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
     * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At expiration, the non-current version of the object is deleted and cannot be recovered.
     * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpirationOrBuilder getNoncurrentExpirationOrBuilder() { return getNoncurrentExpiration(); } public static final int NONCURRENT_TRANSITIONS_FIELD_NUMBER = 8; private java.util.List noncurrentTransitions_; /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ @java.lang.Override public java.util.List getNoncurrentTransitionsList() { return noncurrentTransitions_; } /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ @java.lang.Override public java.util.List getNoncurrentTransitionsOrBuilderList() { return noncurrentTransitions_; } /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ @java.lang.Override public int getNoncurrentTransitionsCount() { return noncurrentTransitions_.size(); } /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition getNoncurrentTransitions(int index) { return noncurrentTransitions_.get(index); } /** *
     * List of transition rules for non-current versions of objects in a bucket with versioning enabled
     * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
     * At transition, the non-current version of the object is transitioned to the specified storage class.
     * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransitionOrBuilder getNoncurrentTransitionsOrBuilder( int index) { return noncurrentTransitions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != null) { output.writeMessage(1, getId()); } if (enabled_ != false) { output.writeBool(2, enabled_); } if (filter_ != null) { output.writeMessage(3, getFilter()); } if (expiration_ != null) { output.writeMessage(4, getExpiration()); } for (int i = 0; i < transitions_.size(); i++) { output.writeMessage(5, transitions_.get(i)); } if (abortIncompleteMultipartUpload_ != null) { output.writeMessage(6, getAbortIncompleteMultipartUpload()); } if (noncurrentExpiration_ != null) { output.writeMessage(7, getNoncurrentExpiration()); } for (int i = 0; i < noncurrentTransitions_.size(); i++) { output.writeMessage(8, noncurrentTransitions_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, enabled_); } if (filter_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFilter()); } if (expiration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExpiration()); } for (int i = 0; i < transitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, transitions_.get(i)); } if (abortIncompleteMultipartUpload_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getAbortIncompleteMultipartUpload()); } if (noncurrentExpiration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getNoncurrentExpiration()); } for (int i = 0; i < noncurrentTransitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, noncurrentTransitions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule other = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (getEnabled() != other.getEnabled()) return false; if (hasFilter() != other.hasFilter()) return false; if (hasFilter()) { if (!getFilter() .equals(other.getFilter())) return false; } if (hasExpiration() != other.hasExpiration()) return false; if (hasExpiration()) { if (!getExpiration() .equals(other.getExpiration())) return false; } if (!getTransitionsList() .equals(other.getTransitionsList())) return false; if (hasAbortIncompleteMultipartUpload() != other.hasAbortIncompleteMultipartUpload()) return false; if (hasAbortIncompleteMultipartUpload()) { if (!getAbortIncompleteMultipartUpload() .equals(other.getAbortIncompleteMultipartUpload())) return false; } if (hasNoncurrentExpiration() != other.hasNoncurrentExpiration()) return false; if (hasNoncurrentExpiration()) { if (!getNoncurrentExpiration() .equals(other.getNoncurrentExpiration())) return false; } if (!getNoncurrentTransitionsList() .equals(other.getNoncurrentTransitionsList())) 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(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); if (hasFilter()) { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); } if (hasExpiration()) { hash = (37 * hash) + EXPIRATION_FIELD_NUMBER; hash = (53 * hash) + getExpiration().hashCode(); } if (getTransitionsCount() > 0) { hash = (37 * hash) + TRANSITIONS_FIELD_NUMBER; hash = (53 * hash) + getTransitionsList().hashCode(); } if (hasAbortIncompleteMultipartUpload()) { hash = (37 * hash) + ABORT_INCOMPLETE_MULTIPART_UPLOAD_FIELD_NUMBER; hash = (53 * hash) + getAbortIncompleteMultipartUpload().hashCode(); } if (hasNoncurrentExpiration()) { hash = (37 * hash) + NONCURRENT_EXPIRATION_FIELD_NUMBER; hash = (53 * hash) + getNoncurrentExpiration().hashCode(); } if (getNoncurrentTransitionsCount() > 0) { hash = (37 * hash) + NONCURRENT_TRANSITIONS_FIELD_NUMBER; hash = (53 * hash) + getNoncurrentTransitionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule 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.storage.v1.BucketOuterClass.LifecycleRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule 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.storage.v1.BucketOuterClass.LifecycleRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule 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.storage.v1.BucketOuterClass.LifecycleRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule 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.storage.v1.BucketOuterClass.LifecycleRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule 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.storage.v1.BucketOuterClass.LifecycleRule 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 object lifecycle rule resource for the bucket.
     * For details about the concept, see [documentation](/docs/storage/concepts/lifecycles).
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.LifecycleRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.LifecycleRule) yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.class, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTransitionsFieldBuilder(); getNoncurrentTransitionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (idBuilder_ == null) { id_ = null; } else { id_ = null; idBuilder_ = null; } enabled_ = false; if (filterBuilder_ == null) { filter_ = null; } else { filter_ = null; filterBuilder_ = null; } if (expirationBuilder_ == null) { expiration_ = null; } else { expiration_ = null; expirationBuilder_ = null; } if (transitionsBuilder_ == null) { transitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { transitionsBuilder_.clear(); } if (abortIncompleteMultipartUploadBuilder_ == null) { abortIncompleteMultipartUpload_ = null; } else { abortIncompleteMultipartUpload_ = null; abortIncompleteMultipartUploadBuilder_ = null; } if (noncurrentExpirationBuilder_ == null) { noncurrentExpiration_ = null; } else { noncurrentExpiration_ = null; noncurrentExpirationBuilder_ = null; } if (noncurrentTransitionsBuilder_ == null) { noncurrentTransitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { noncurrentTransitionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule build() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule result = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule(this); int from_bitField0_ = bitField0_; if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } result.enabled_ = enabled_; if (filterBuilder_ == null) { result.filter_ = filter_; } else { result.filter_ = filterBuilder_.build(); } if (expirationBuilder_ == null) { result.expiration_ = expiration_; } else { result.expiration_ = expirationBuilder_.build(); } if (transitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transitions_ = java.util.Collections.unmodifiableList(transitions_); bitField0_ = (bitField0_ & ~0x00000001); } result.transitions_ = transitions_; } else { result.transitions_ = transitionsBuilder_.build(); } if (abortIncompleteMultipartUploadBuilder_ == null) { result.abortIncompleteMultipartUpload_ = abortIncompleteMultipartUpload_; } else { result.abortIncompleteMultipartUpload_ = abortIncompleteMultipartUploadBuilder_.build(); } if (noncurrentExpirationBuilder_ == null) { result.noncurrentExpiration_ = noncurrentExpiration_; } else { result.noncurrentExpiration_ = noncurrentExpirationBuilder_.build(); } if (noncurrentTransitionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { noncurrentTransitions_ = java.util.Collections.unmodifiableList(noncurrentTransitions_); bitField0_ = (bitField0_ & ~0x00000002); } result.noncurrentTransitions_ = noncurrentTransitions_; } else { result.noncurrentTransitions_ = noncurrentTransitionsBuilder_.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.storage.v1.BucketOuterClass.LifecycleRule) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } if (other.hasFilter()) { mergeFilter(other.getFilter()); } if (other.hasExpiration()) { mergeExpiration(other.getExpiration()); } if (transitionsBuilder_ == null) { if (!other.transitions_.isEmpty()) { if (transitions_.isEmpty()) { transitions_ = other.transitions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTransitionsIsMutable(); transitions_.addAll(other.transitions_); } onChanged(); } } else { if (!other.transitions_.isEmpty()) { if (transitionsBuilder_.isEmpty()) { transitionsBuilder_.dispose(); transitionsBuilder_ = null; transitions_ = other.transitions_; bitField0_ = (bitField0_ & ~0x00000001); transitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionsFieldBuilder() : null; } else { transitionsBuilder_.addAllMessages(other.transitions_); } } } if (other.hasAbortIncompleteMultipartUpload()) { mergeAbortIncompleteMultipartUpload(other.getAbortIncompleteMultipartUpload()); } if (other.hasNoncurrentExpiration()) { mergeNoncurrentExpiration(other.getNoncurrentExpiration()); } if (noncurrentTransitionsBuilder_ == null) { if (!other.noncurrentTransitions_.isEmpty()) { if (noncurrentTransitions_.isEmpty()) { noncurrentTransitions_ = other.noncurrentTransitions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNoncurrentTransitionsIsMutable(); noncurrentTransitions_.addAll(other.noncurrentTransitions_); } onChanged(); } } else { if (!other.noncurrentTransitions_.isEmpty()) { if (noncurrentTransitionsBuilder_.isEmpty()) { noncurrentTransitionsBuilder_.dispose(); noncurrentTransitionsBuilder_ = null; noncurrentTransitions_ = other.noncurrentTransitions_; bitField0_ = (bitField0_ & ~0x00000002); noncurrentTransitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNoncurrentTransitionsFieldBuilder() : null; } else { noncurrentTransitionsBuilder_.addAllMessages(other.noncurrentTransitions_); } } } 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.storage.v1.BucketOuterClass.LifecycleRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.StringValue id_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> idBuilder_; /** *
       * ID of the rule. Provided by the client or generated at creation time.
       * 
* * .google.protobuf.StringValue id = 1; * @return Whether the id field is set. */ public boolean hasId() { return idBuilder_ != null || id_ != null; } /** *
       * ID of the rule. Provided by the client or generated at creation time.
       * 
* * .google.protobuf.StringValue id = 1; * @return The id. */ public com.google.protobuf.StringValue getId() { if (idBuilder_ == null) { return id_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
       * ID of the rule. Provided by the client or generated at creation time.
       * 
* * .google.protobuf.StringValue id = 1; */ public Builder setId(com.google.protobuf.StringValue value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } return this; } /** *
       * ID of the rule. Provided by the client or generated at creation time.
       * 
* * .google.protobuf.StringValue id = 1; */ public Builder setId( com.google.protobuf.StringValue.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * ID of the rule. Provided by the client or generated at creation time.
       * 
* * .google.protobuf.StringValue id = 1; */ public Builder mergeId(com.google.protobuf.StringValue value) { if (idBuilder_ == null) { if (id_ != null) { id_ = com.google.protobuf.StringValue.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } return this; } /** *
       * ID of the rule. Provided by the client or generated at creation time.
       * 
* * .google.protobuf.StringValue id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { id_ = null; idBuilder_ = null; } return this; } /** *
       * ID of the rule. Provided by the client or generated at creation time.
       * 
* * .google.protobuf.StringValue id = 1; */ public com.google.protobuf.StringValue.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
       * ID of the rule. Provided by the client or generated at creation time.
       * 
* * .google.protobuf.StringValue id = 1; */ public com.google.protobuf.StringValueOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : id_; } } /** *
       * ID of the rule. Provided by the client or generated at creation time.
       * 
* * .google.protobuf.StringValue id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private boolean enabled_ ; /** *
       * Indicates whether the rule is in effect.
       * 
* * bool enabled = 2; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** *
       * Indicates whether the rule is in effect.
       * 
* * bool enabled = 2; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; onChanged(); return this; } /** *
       * Indicates whether the rule is in effect.
       * 
* * bool enabled = 2; * @return This builder for chaining. */ public Builder clearEnabled() { enabled_ = false; onChanged(); return this; } private yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter filter_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilterOrBuilder> filterBuilder_; /** *
       * Filter that identifies the objects to which the rule applies.
       * If not specified, the rule applies to all objects in the bucket.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; * @return Whether the filter field is set. */ public boolean hasFilter() { return filterBuilder_ != null || filter_ != null; } /** *
       * Filter that identifies the objects to which the rule applies.
       * If not specified, the rule applies to all objects in the bucket.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; * @return The filter. */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter getFilter() { if (filterBuilder_ == null) { return filter_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.getDefaultInstance() : filter_; } else { return filterBuilder_.getMessage(); } } /** *
       * Filter that identifies the objects to which the rule applies.
       * If not specified, the rule applies to all objects in the bucket.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; */ public Builder setFilter(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); } else { filterBuilder_.setMessage(value); } return this; } /** *
       * Filter that identifies the objects to which the rule applies.
       * If not specified, the rule applies to all objects in the bucket.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; */ public Builder setFilter( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.Builder builderForValue) { if (filterBuilder_ == null) { filter_ = builderForValue.build(); onChanged(); } else { filterBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Filter that identifies the objects to which the rule applies.
       * If not specified, the rule applies to all objects in the bucket.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; */ public Builder mergeFilter(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter value) { if (filterBuilder_ == null) { if (filter_ != null) { filter_ = yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.newBuilder(filter_).mergeFrom(value).buildPartial(); } else { filter_ = value; } onChanged(); } else { filterBuilder_.mergeFrom(value); } return this; } /** *
       * Filter that identifies the objects to which the rule applies.
       * If not specified, the rule applies to all objects in the bucket.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; */ public Builder clearFilter() { if (filterBuilder_ == null) { filter_ = null; onChanged(); } else { filter_ = null; filterBuilder_ = null; } return this; } /** *
       * Filter that identifies the objects to which the rule applies.
       * If not specified, the rule applies to all objects in the bucket.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.Builder getFilterBuilder() { onChanged(); return getFilterFieldBuilder().getBuilder(); } /** *
       * Filter that identifies the objects to which the rule applies.
       * If not specified, the rule applies to all objects in the bucket.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilterOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { return filter_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.getDefaultInstance() : filter_; } } /** *
       * Filter that identifies the objects to which the rule applies.
       * If not specified, the rule applies to all objects in the bucket.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.RuleFilter filter = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilterOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilter.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.RuleFilterOrBuilder>( getFilter(), getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; } private yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration expiration_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.ExpirationOrBuilder> expirationBuilder_; /** *
       * Expiration rule.
       * The expiration of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
       * recovered.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
       * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
       * the current version of the object.
       * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
       * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
       * delete marker becomes the current version of the object.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; * @return Whether the expiration field is set. */ public boolean hasExpiration() { return expirationBuilder_ != null || expiration_ != null; } /** *
       * Expiration rule.
       * The expiration of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
       * recovered.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
       * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
       * the current version of the object.
       * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
       * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
       * delete marker becomes the current version of the object.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; * @return The expiration. */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration getExpiration() { if (expirationBuilder_ == null) { return expiration_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.getDefaultInstance() : expiration_; } else { return expirationBuilder_.getMessage(); } } /** *
       * Expiration rule.
       * The expiration of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
       * recovered.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
       * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
       * the current version of the object.
       * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
       * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
       * delete marker becomes the current version of the object.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; */ public Builder setExpiration(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration value) { if (expirationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expiration_ = value; onChanged(); } else { expirationBuilder_.setMessage(value); } return this; } /** *
       * Expiration rule.
       * The expiration of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
       * recovered.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
       * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
       * the current version of the object.
       * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
       * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
       * delete marker becomes the current version of the object.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; */ public Builder setExpiration( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.Builder builderForValue) { if (expirationBuilder_ == null) { expiration_ = builderForValue.build(); onChanged(); } else { expirationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Expiration rule.
       * The expiration of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
       * recovered.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
       * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
       * the current version of the object.
       * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
       * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
       * delete marker becomes the current version of the object.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; */ public Builder mergeExpiration(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration value) { if (expirationBuilder_ == null) { if (expiration_ != null) { expiration_ = yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.newBuilder(expiration_).mergeFrom(value).buildPartial(); } else { expiration_ = value; } onChanged(); } else { expirationBuilder_.mergeFrom(value); } return this; } /** *
       * Expiration rule.
       * The expiration of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
       * recovered.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
       * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
       * the current version of the object.
       * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
       * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
       * delete marker becomes the current version of the object.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; */ public Builder clearExpiration() { if (expirationBuilder_ == null) { expiration_ = null; onChanged(); } else { expiration_ = null; expirationBuilder_ = null; } return this; } /** *
       * Expiration rule.
       * The expiration of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
       * recovered.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
       * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
       * the current version of the object.
       * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
       * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
       * delete marker becomes the current version of the object.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.Builder getExpirationBuilder() { onChanged(); return getExpirationFieldBuilder().getBuilder(); } /** *
       * Expiration rule.
       * The expiration of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
       * recovered.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
       * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
       * the current version of the object.
       * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
       * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
       * delete marker becomes the current version of the object.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.ExpirationOrBuilder getExpirationOrBuilder() { if (expirationBuilder_ != null) { return expirationBuilder_.getMessageOrBuilder(); } else { return expiration_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.getDefaultInstance() : expiration_; } } /** *
       * Expiration rule.
       * The expiration of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is deleted and cannot be
       * recovered.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`), the current version of the
       * object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
       * the current version of the object.
       * For the bucket with versioning suspended ([Bucket.versioning] is `VERSIONING_SUSPENDED`), the current version of
       * the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
       * delete marker becomes the current version of the object.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.Expiration expiration = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.ExpirationOrBuilder> getExpirationFieldBuilder() { if (expirationBuilder_ == null) { expirationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Expiration.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.ExpirationOrBuilder>( getExpiration(), getParentForChildren(), isClean()); expiration_ = null; } return expirationBuilder_; } private java.util.List transitions_ = java.util.Collections.emptyList(); private void ensureTransitionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { transitions_ = new java.util.ArrayList(transitions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.TransitionOrBuilder> transitionsBuilder_; /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public java.util.List getTransitionsList() { if (transitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(transitions_); } else { return transitionsBuilder_.getMessageList(); } } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public int getTransitionsCount() { if (transitionsBuilder_ == null) { return transitions_.size(); } else { return transitionsBuilder_.getCount(); } } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition getTransitions(int index) { if (transitionsBuilder_ == null) { return transitions_.get(index); } else { return transitionsBuilder_.getMessage(index); } } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public Builder setTransitions( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition value) { if (transitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransitionsIsMutable(); transitions_.set(index, value); onChanged(); } else { transitionsBuilder_.setMessage(index, value); } return this; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public Builder setTransitions( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.set(index, builderForValue.build()); onChanged(); } else { transitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public Builder addTransitions(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition value) { if (transitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransitionsIsMutable(); transitions_.add(value); onChanged(); } else { transitionsBuilder_.addMessage(value); } return this; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public Builder addTransitions( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition value) { if (transitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransitionsIsMutable(); transitions_.add(index, value); onChanged(); } else { transitionsBuilder_.addMessage(index, value); } return this; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public Builder addTransitions( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.add(builderForValue.build()); onChanged(); } else { transitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public Builder addTransitions( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.add(index, builderForValue.build()); onChanged(); } else { transitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public Builder addAllTransitions( java.lang.Iterable values) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transitions_); onChanged(); } else { transitionsBuilder_.addAllMessages(values); } return this; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public Builder clearTransitions() { if (transitionsBuilder_ == null) { transitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { transitionsBuilder_.clear(); } return this; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public Builder removeTransitions(int index) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.remove(index); onChanged(); } else { transitionsBuilder_.remove(index); } return this; } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder getTransitionsBuilder( int index) { return getTransitionsFieldBuilder().getBuilder(index); } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.TransitionOrBuilder getTransitionsOrBuilder( int index) { if (transitionsBuilder_ == null) { return transitions_.get(index); } else { return transitionsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public java.util.List getTransitionsOrBuilderList() { if (transitionsBuilder_ != null) { return transitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transitions_); } } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder addTransitionsBuilder() { return getTransitionsFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.getDefaultInstance()); } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder addTransitionsBuilder( int index) { return getTransitionsFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.getDefaultInstance()); } /** *
       * List of transition rules.
       * The transition of an object is described as follows.
       * For the unversioned bucket ([Bucket.versioning] is `VERSIONING_DISABLED`), the object is transitioned to the
       * specified storage class.
       * For the bucket with versioning enabled ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended
       * (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.Transition transitions = 5; */ public java.util.List getTransitionsBuilderList() { return getTransitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.TransitionOrBuilder> getTransitionsFieldBuilder() { if (transitionsBuilder_ == null) { transitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.Transition.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.TransitionOrBuilder>( transitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); transitions_ = null; } return transitionsBuilder_; } private yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays abortIncompleteMultipartUpload_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDaysOrBuilder> abortIncompleteMultipartUploadBuilder_; /** *
       * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; * @return Whether the abortIncompleteMultipartUpload field is set. */ public boolean hasAbortIncompleteMultipartUpload() { return abortIncompleteMultipartUploadBuilder_ != null || abortIncompleteMultipartUpload_ != null; } /** *
       * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; * @return The abortIncompleteMultipartUpload. */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays getAbortIncompleteMultipartUpload() { if (abortIncompleteMultipartUploadBuilder_ == null) { return abortIncompleteMultipartUpload_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.getDefaultInstance() : abortIncompleteMultipartUpload_; } else { return abortIncompleteMultipartUploadBuilder_.getMessage(); } } /** *
       * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; */ public Builder setAbortIncompleteMultipartUpload(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays value) { if (abortIncompleteMultipartUploadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } abortIncompleteMultipartUpload_ = value; onChanged(); } else { abortIncompleteMultipartUploadBuilder_.setMessage(value); } return this; } /** *
       * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; */ public Builder setAbortIncompleteMultipartUpload( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.Builder builderForValue) { if (abortIncompleteMultipartUploadBuilder_ == null) { abortIncompleteMultipartUpload_ = builderForValue.build(); onChanged(); } else { abortIncompleteMultipartUploadBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; */ public Builder mergeAbortIncompleteMultipartUpload(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays value) { if (abortIncompleteMultipartUploadBuilder_ == null) { if (abortIncompleteMultipartUpload_ != null) { abortIncompleteMultipartUpload_ = yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.newBuilder(abortIncompleteMultipartUpload_).mergeFrom(value).buildPartial(); } else { abortIncompleteMultipartUpload_ = value; } onChanged(); } else { abortIncompleteMultipartUploadBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; */ public Builder clearAbortIncompleteMultipartUpload() { if (abortIncompleteMultipartUploadBuilder_ == null) { abortIncompleteMultipartUpload_ = null; onChanged(); } else { abortIncompleteMultipartUpload_ = null; abortIncompleteMultipartUploadBuilder_ = null; } return this; } /** *
       * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.Builder getAbortIncompleteMultipartUploadBuilder() { onChanged(); return getAbortIncompleteMultipartUploadFieldBuilder().getBuilder(); } /** *
       * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDaysOrBuilder getAbortIncompleteMultipartUploadOrBuilder() { if (abortIncompleteMultipartUploadBuilder_ != null) { return abortIncompleteMultipartUploadBuilder_.getMessageOrBuilder(); } else { return abortIncompleteMultipartUpload_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.getDefaultInstance() : abortIncompleteMultipartUpload_; } } /** *
       * Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.AfterDays abort_incomplete_multipart_upload = 6; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDaysOrBuilder> getAbortIncompleteMultipartUploadFieldBuilder() { if (abortIncompleteMultipartUploadBuilder_ == null) { abortIncompleteMultipartUploadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDays.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.AfterDaysOrBuilder>( getAbortIncompleteMultipartUpload(), getParentForChildren(), isClean()); abortIncompleteMultipartUpload_ = null; } return abortIncompleteMultipartUploadBuilder_; } private yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration noncurrentExpiration_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpirationOrBuilder> noncurrentExpirationBuilder_; /** *
       * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
       * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At expiration, the non-current version of the object is deleted and cannot be recovered.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; * @return Whether the noncurrentExpiration field is set. */ public boolean hasNoncurrentExpiration() { return noncurrentExpirationBuilder_ != null || noncurrentExpiration_ != null; } /** *
       * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
       * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At expiration, the non-current version of the object is deleted and cannot be recovered.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; * @return The noncurrentExpiration. */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration getNoncurrentExpiration() { if (noncurrentExpirationBuilder_ == null) { return noncurrentExpiration_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.getDefaultInstance() : noncurrentExpiration_; } else { return noncurrentExpirationBuilder_.getMessage(); } } /** *
       * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
       * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At expiration, the non-current version of the object is deleted and cannot be recovered.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; */ public Builder setNoncurrentExpiration(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration value) { if (noncurrentExpirationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } noncurrentExpiration_ = value; onChanged(); } else { noncurrentExpirationBuilder_.setMessage(value); } return this; } /** *
       * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
       * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At expiration, the non-current version of the object is deleted and cannot be recovered.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; */ public Builder setNoncurrentExpiration( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.Builder builderForValue) { if (noncurrentExpirationBuilder_ == null) { noncurrentExpiration_ = builderForValue.build(); onChanged(); } else { noncurrentExpirationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
       * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At expiration, the non-current version of the object is deleted and cannot be recovered.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; */ public Builder mergeNoncurrentExpiration(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration value) { if (noncurrentExpirationBuilder_ == null) { if (noncurrentExpiration_ != null) { noncurrentExpiration_ = yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.newBuilder(noncurrentExpiration_).mergeFrom(value).buildPartial(); } else { noncurrentExpiration_ = value; } onChanged(); } else { noncurrentExpirationBuilder_.mergeFrom(value); } return this; } /** *
       * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
       * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At expiration, the non-current version of the object is deleted and cannot be recovered.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; */ public Builder clearNoncurrentExpiration() { if (noncurrentExpirationBuilder_ == null) { noncurrentExpiration_ = null; onChanged(); } else { noncurrentExpiration_ = null; noncurrentExpirationBuilder_ = null; } return this; } /** *
       * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
       * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At expiration, the non-current version of the object is deleted and cannot be recovered.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.Builder getNoncurrentExpirationBuilder() { onChanged(); return getNoncurrentExpirationFieldBuilder().getBuilder(); } /** *
       * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
       * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At expiration, the non-current version of the object is deleted and cannot be recovered.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpirationOrBuilder getNoncurrentExpirationOrBuilder() { if (noncurrentExpirationBuilder_ != null) { return noncurrentExpirationBuilder_.getMessageOrBuilder(); } else { return noncurrentExpiration_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.getDefaultInstance() : noncurrentExpiration_; } } /** *
       * Expiration rule for non-current versions of objects in a bucket with versioning enabled ([Bucket.versioning] is
       * `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At expiration, the non-current version of the object is deleted and cannot be recovered.
       * 
* * .yandex.cloud.storage.v1.LifecycleRule.NoncurrentExpiration noncurrent_expiration = 7; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpirationOrBuilder> getNoncurrentExpirationFieldBuilder() { if (noncurrentExpirationBuilder_ == null) { noncurrentExpirationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpiration.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentExpirationOrBuilder>( getNoncurrentExpiration(), getParentForChildren(), isClean()); noncurrentExpiration_ = null; } return noncurrentExpirationBuilder_; } private java.util.List noncurrentTransitions_ = java.util.Collections.emptyList(); private void ensureNoncurrentTransitionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { noncurrentTransitions_ = new java.util.ArrayList(noncurrentTransitions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransitionOrBuilder> noncurrentTransitionsBuilder_; /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public java.util.List getNoncurrentTransitionsList() { if (noncurrentTransitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(noncurrentTransitions_); } else { return noncurrentTransitionsBuilder_.getMessageList(); } } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public int getNoncurrentTransitionsCount() { if (noncurrentTransitionsBuilder_ == null) { return noncurrentTransitions_.size(); } else { return noncurrentTransitionsBuilder_.getCount(); } } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition getNoncurrentTransitions(int index) { if (noncurrentTransitionsBuilder_ == null) { return noncurrentTransitions_.get(index); } else { return noncurrentTransitionsBuilder_.getMessage(index); } } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public Builder setNoncurrentTransitions( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition value) { if (noncurrentTransitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNoncurrentTransitionsIsMutable(); noncurrentTransitions_.set(index, value); onChanged(); } else { noncurrentTransitionsBuilder_.setMessage(index, value); } return this; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public Builder setNoncurrentTransitions( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder builderForValue) { if (noncurrentTransitionsBuilder_ == null) { ensureNoncurrentTransitionsIsMutable(); noncurrentTransitions_.set(index, builderForValue.build()); onChanged(); } else { noncurrentTransitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public Builder addNoncurrentTransitions(yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition value) { if (noncurrentTransitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNoncurrentTransitionsIsMutable(); noncurrentTransitions_.add(value); onChanged(); } else { noncurrentTransitionsBuilder_.addMessage(value); } return this; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public Builder addNoncurrentTransitions( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition value) { if (noncurrentTransitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNoncurrentTransitionsIsMutable(); noncurrentTransitions_.add(index, value); onChanged(); } else { noncurrentTransitionsBuilder_.addMessage(index, value); } return this; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public Builder addNoncurrentTransitions( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder builderForValue) { if (noncurrentTransitionsBuilder_ == null) { ensureNoncurrentTransitionsIsMutable(); noncurrentTransitions_.add(builderForValue.build()); onChanged(); } else { noncurrentTransitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public Builder addNoncurrentTransitions( int index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder builderForValue) { if (noncurrentTransitionsBuilder_ == null) { ensureNoncurrentTransitionsIsMutable(); noncurrentTransitions_.add(index, builderForValue.build()); onChanged(); } else { noncurrentTransitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public Builder addAllNoncurrentTransitions( java.lang.Iterable values) { if (noncurrentTransitionsBuilder_ == null) { ensureNoncurrentTransitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, noncurrentTransitions_); onChanged(); } else { noncurrentTransitionsBuilder_.addAllMessages(values); } return this; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public Builder clearNoncurrentTransitions() { if (noncurrentTransitionsBuilder_ == null) { noncurrentTransitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { noncurrentTransitionsBuilder_.clear(); } return this; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public Builder removeNoncurrentTransitions(int index) { if (noncurrentTransitionsBuilder_ == null) { ensureNoncurrentTransitionsIsMutable(); noncurrentTransitions_.remove(index); onChanged(); } else { noncurrentTransitionsBuilder_.remove(index); } return this; } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder getNoncurrentTransitionsBuilder( int index) { return getNoncurrentTransitionsFieldBuilder().getBuilder(index); } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransitionOrBuilder getNoncurrentTransitionsOrBuilder( int index) { if (noncurrentTransitionsBuilder_ == null) { return noncurrentTransitions_.get(index); } else { return noncurrentTransitionsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public java.util.List getNoncurrentTransitionsOrBuilderList() { if (noncurrentTransitionsBuilder_ != null) { return noncurrentTransitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(noncurrentTransitions_); } } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder addNoncurrentTransitionsBuilder() { return getNoncurrentTransitionsFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.getDefaultInstance()); } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder addNoncurrentTransitionsBuilder( int index) { return getNoncurrentTransitionsFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.getDefaultInstance()); } /** *
       * List of transition rules for non-current versions of objects in a bucket with versioning enabled
       * ([Bucket.versioning] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
       * At transition, the non-current version of the object is transitioned to the specified storage class.
       * 
* * repeated .yandex.cloud.storage.v1.LifecycleRule.NoncurrentTransition noncurrent_transitions = 8; */ public java.util.List getNoncurrentTransitionsBuilderList() { return getNoncurrentTransitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransitionOrBuilder> getNoncurrentTransitionsFieldBuilder() { if (noncurrentTransitionsBuilder_ == null) { noncurrentTransitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransition.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule.NoncurrentTransitionOrBuilder>( noncurrentTransitions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); noncurrentTransitions_ = null; } return noncurrentTransitionsBuilder_; } @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.storage.v1.LifecycleRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.LifecycleRule) private static final yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.LifecycleRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LifecycleRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LifecycleRule(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.storage.v1.BucketOuterClass.LifecycleRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CountersOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.Counters) com.google.protobuf.MessageOrBuilder { /** *
     * Total size of objects uploaded in single operation, in bytes.
     * 
* * int64 simple_object_size = 1; * @return The simpleObjectSize. */ long getSimpleObjectSize(); /** *
     * Number of objects uploaded in single operation.
     * 
* * int64 simple_object_count = 2; * @return The simpleObjectCount. */ long getSimpleObjectCount(); /** *
     * Total size of uploaded parts in incomplete multipart uploads, in bytes.
     * 
* * int64 objects_parts_size = 3; * @return The objectsPartsSize. */ long getObjectsPartsSize(); /** *
     * Number of uploaded parts in incomplete multipart uploads.
     * 
* * int64 objects_parts_count = 4; * @return The objectsPartsCount. */ long getObjectsPartsCount(); /** *
     * Total size of objects uploaded in multiple parts, in bytes.
     * 
* * int64 multipart_objects_size = 5; * @return The multipartObjectsSize. */ long getMultipartObjectsSize(); /** *
     * Number of objects uploaded in multiple parts.
     * 
* * int64 multipart_objects_count = 6; * @return The multipartObjectsCount. */ long getMultipartObjectsCount(); /** *
     * Number of incomplete multipart uploads.
     * 
* * int64 active_multipart_count = 7; * @return The activeMultipartCount. */ long getActiveMultipartCount(); } /** * Protobuf type {@code yandex.cloud.storage.v1.Counters} */ public static final class Counters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.Counters) CountersOrBuilder { private static final long serialVersionUID = 0L; // Use Counters.newBuilder() to construct. private Counters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Counters() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Counters(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Counters( 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: { simpleObjectSize_ = input.readInt64(); break; } case 16: { simpleObjectCount_ = input.readInt64(); break; } case 24: { objectsPartsSize_ = input.readInt64(); break; } case 32: { objectsPartsCount_ = input.readInt64(); break; } case 40: { multipartObjectsSize_ = input.readInt64(); break; } case 48: { multipartObjectsCount_ = input.readInt64(); break; } case 56: { activeMultipartCount_ = input.readInt64(); 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Counters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Counters_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Counters.class, yandex.cloud.api.storage.v1.BucketOuterClass.Counters.Builder.class); } public static final int SIMPLE_OBJECT_SIZE_FIELD_NUMBER = 1; private long simpleObjectSize_; /** *
     * Total size of objects uploaded in single operation, in bytes.
     * 
* * int64 simple_object_size = 1; * @return The simpleObjectSize. */ @java.lang.Override public long getSimpleObjectSize() { return simpleObjectSize_; } public static final int SIMPLE_OBJECT_COUNT_FIELD_NUMBER = 2; private long simpleObjectCount_; /** *
     * Number of objects uploaded in single operation.
     * 
* * int64 simple_object_count = 2; * @return The simpleObjectCount. */ @java.lang.Override public long getSimpleObjectCount() { return simpleObjectCount_; } public static final int OBJECTS_PARTS_SIZE_FIELD_NUMBER = 3; private long objectsPartsSize_; /** *
     * Total size of uploaded parts in incomplete multipart uploads, in bytes.
     * 
* * int64 objects_parts_size = 3; * @return The objectsPartsSize. */ @java.lang.Override public long getObjectsPartsSize() { return objectsPartsSize_; } public static final int OBJECTS_PARTS_COUNT_FIELD_NUMBER = 4; private long objectsPartsCount_; /** *
     * Number of uploaded parts in incomplete multipart uploads.
     * 
* * int64 objects_parts_count = 4; * @return The objectsPartsCount. */ @java.lang.Override public long getObjectsPartsCount() { return objectsPartsCount_; } public static final int MULTIPART_OBJECTS_SIZE_FIELD_NUMBER = 5; private long multipartObjectsSize_; /** *
     * Total size of objects uploaded in multiple parts, in bytes.
     * 
* * int64 multipart_objects_size = 5; * @return The multipartObjectsSize. */ @java.lang.Override public long getMultipartObjectsSize() { return multipartObjectsSize_; } public static final int MULTIPART_OBJECTS_COUNT_FIELD_NUMBER = 6; private long multipartObjectsCount_; /** *
     * Number of objects uploaded in multiple parts.
     * 
* * int64 multipart_objects_count = 6; * @return The multipartObjectsCount. */ @java.lang.Override public long getMultipartObjectsCount() { return multipartObjectsCount_; } public static final int ACTIVE_MULTIPART_COUNT_FIELD_NUMBER = 7; private long activeMultipartCount_; /** *
     * Number of incomplete multipart uploads.
     * 
* * int64 active_multipart_count = 7; * @return The activeMultipartCount. */ @java.lang.Override public long getActiveMultipartCount() { return activeMultipartCount_; } 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 (simpleObjectSize_ != 0L) { output.writeInt64(1, simpleObjectSize_); } if (simpleObjectCount_ != 0L) { output.writeInt64(2, simpleObjectCount_); } if (objectsPartsSize_ != 0L) { output.writeInt64(3, objectsPartsSize_); } if (objectsPartsCount_ != 0L) { output.writeInt64(4, objectsPartsCount_); } if (multipartObjectsSize_ != 0L) { output.writeInt64(5, multipartObjectsSize_); } if (multipartObjectsCount_ != 0L) { output.writeInt64(6, multipartObjectsCount_); } if (activeMultipartCount_ != 0L) { output.writeInt64(7, activeMultipartCount_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (simpleObjectSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, simpleObjectSize_); } if (simpleObjectCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, simpleObjectCount_); } if (objectsPartsSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, objectsPartsSize_); } if (objectsPartsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, objectsPartsCount_); } if (multipartObjectsSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, multipartObjectsSize_); } if (multipartObjectsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, multipartObjectsCount_); } if (activeMultipartCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, activeMultipartCount_); } 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.storage.v1.BucketOuterClass.Counters)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.Counters other = (yandex.cloud.api.storage.v1.BucketOuterClass.Counters) obj; if (getSimpleObjectSize() != other.getSimpleObjectSize()) return false; if (getSimpleObjectCount() != other.getSimpleObjectCount()) return false; if (getObjectsPartsSize() != other.getObjectsPartsSize()) return false; if (getObjectsPartsCount() != other.getObjectsPartsCount()) return false; if (getMultipartObjectsSize() != other.getMultipartObjectsSize()) return false; if (getMultipartObjectsCount() != other.getMultipartObjectsCount()) return false; if (getActiveMultipartCount() != other.getActiveMultipartCount()) 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) + SIMPLE_OBJECT_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSimpleObjectSize()); hash = (37 * hash) + SIMPLE_OBJECT_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSimpleObjectCount()); hash = (37 * hash) + OBJECTS_PARTS_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getObjectsPartsSize()); hash = (37 * hash) + OBJECTS_PARTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getObjectsPartsCount()); hash = (37 * hash) + MULTIPART_OBJECTS_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMultipartObjectsSize()); hash = (37 * hash) + MULTIPART_OBJECTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMultipartObjectsCount()); hash = (37 * hash) + ACTIVE_MULTIPART_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getActiveMultipartCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.Counters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Counters 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.storage.v1.BucketOuterClass.Counters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Counters 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.storage.v1.BucketOuterClass.Counters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Counters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Counters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Counters 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.storage.v1.BucketOuterClass.Counters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Counters 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.storage.v1.BucketOuterClass.Counters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Counters 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.storage.v1.BucketOuterClass.Counters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.Counters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.Counters) yandex.cloud.api.storage.v1.BucketOuterClass.CountersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Counters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Counters_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Counters.class, yandex.cloud.api.storage.v1.BucketOuterClass.Counters.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.Counters.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(); simpleObjectSize_ = 0L; simpleObjectCount_ = 0L; objectsPartsSize_ = 0L; objectsPartsCount_ = 0L; multipartObjectsSize_ = 0L; multipartObjectsCount_ = 0L; activeMultipartCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Counters_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Counters getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.Counters.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Counters build() { yandex.cloud.api.storage.v1.BucketOuterClass.Counters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Counters buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.Counters result = new yandex.cloud.api.storage.v1.BucketOuterClass.Counters(this); result.simpleObjectSize_ = simpleObjectSize_; result.simpleObjectCount_ = simpleObjectCount_; result.objectsPartsSize_ = objectsPartsSize_; result.objectsPartsCount_ = objectsPartsCount_; result.multipartObjectsSize_ = multipartObjectsSize_; result.multipartObjectsCount_ = multipartObjectsCount_; result.activeMultipartCount_ = activeMultipartCount_; 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.storage.v1.BucketOuterClass.Counters) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.Counters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.Counters other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.Counters.getDefaultInstance()) return this; if (other.getSimpleObjectSize() != 0L) { setSimpleObjectSize(other.getSimpleObjectSize()); } if (other.getSimpleObjectCount() != 0L) { setSimpleObjectCount(other.getSimpleObjectCount()); } if (other.getObjectsPartsSize() != 0L) { setObjectsPartsSize(other.getObjectsPartsSize()); } if (other.getObjectsPartsCount() != 0L) { setObjectsPartsCount(other.getObjectsPartsCount()); } if (other.getMultipartObjectsSize() != 0L) { setMultipartObjectsSize(other.getMultipartObjectsSize()); } if (other.getMultipartObjectsCount() != 0L) { setMultipartObjectsCount(other.getMultipartObjectsCount()); } if (other.getActiveMultipartCount() != 0L) { setActiveMultipartCount(other.getActiveMultipartCount()); } 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.storage.v1.BucketOuterClass.Counters parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.Counters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long simpleObjectSize_ ; /** *
       * Total size of objects uploaded in single operation, in bytes.
       * 
* * int64 simple_object_size = 1; * @return The simpleObjectSize. */ @java.lang.Override public long getSimpleObjectSize() { return simpleObjectSize_; } /** *
       * Total size of objects uploaded in single operation, in bytes.
       * 
* * int64 simple_object_size = 1; * @param value The simpleObjectSize to set. * @return This builder for chaining. */ public Builder setSimpleObjectSize(long value) { simpleObjectSize_ = value; onChanged(); return this; } /** *
       * Total size of objects uploaded in single operation, in bytes.
       * 
* * int64 simple_object_size = 1; * @return This builder for chaining. */ public Builder clearSimpleObjectSize() { simpleObjectSize_ = 0L; onChanged(); return this; } private long simpleObjectCount_ ; /** *
       * Number of objects uploaded in single operation.
       * 
* * int64 simple_object_count = 2; * @return The simpleObjectCount. */ @java.lang.Override public long getSimpleObjectCount() { return simpleObjectCount_; } /** *
       * Number of objects uploaded in single operation.
       * 
* * int64 simple_object_count = 2; * @param value The simpleObjectCount to set. * @return This builder for chaining. */ public Builder setSimpleObjectCount(long value) { simpleObjectCount_ = value; onChanged(); return this; } /** *
       * Number of objects uploaded in single operation.
       * 
* * int64 simple_object_count = 2; * @return This builder for chaining. */ public Builder clearSimpleObjectCount() { simpleObjectCount_ = 0L; onChanged(); return this; } private long objectsPartsSize_ ; /** *
       * Total size of uploaded parts in incomplete multipart uploads, in bytes.
       * 
* * int64 objects_parts_size = 3; * @return The objectsPartsSize. */ @java.lang.Override public long getObjectsPartsSize() { return objectsPartsSize_; } /** *
       * Total size of uploaded parts in incomplete multipart uploads, in bytes.
       * 
* * int64 objects_parts_size = 3; * @param value The objectsPartsSize to set. * @return This builder for chaining. */ public Builder setObjectsPartsSize(long value) { objectsPartsSize_ = value; onChanged(); return this; } /** *
       * Total size of uploaded parts in incomplete multipart uploads, in bytes.
       * 
* * int64 objects_parts_size = 3; * @return This builder for chaining. */ public Builder clearObjectsPartsSize() { objectsPartsSize_ = 0L; onChanged(); return this; } private long objectsPartsCount_ ; /** *
       * Number of uploaded parts in incomplete multipart uploads.
       * 
* * int64 objects_parts_count = 4; * @return The objectsPartsCount. */ @java.lang.Override public long getObjectsPartsCount() { return objectsPartsCount_; } /** *
       * Number of uploaded parts in incomplete multipart uploads.
       * 
* * int64 objects_parts_count = 4; * @param value The objectsPartsCount to set. * @return This builder for chaining. */ public Builder setObjectsPartsCount(long value) { objectsPartsCount_ = value; onChanged(); return this; } /** *
       * Number of uploaded parts in incomplete multipart uploads.
       * 
* * int64 objects_parts_count = 4; * @return This builder for chaining. */ public Builder clearObjectsPartsCount() { objectsPartsCount_ = 0L; onChanged(); return this; } private long multipartObjectsSize_ ; /** *
       * Total size of objects uploaded in multiple parts, in bytes.
       * 
* * int64 multipart_objects_size = 5; * @return The multipartObjectsSize. */ @java.lang.Override public long getMultipartObjectsSize() { return multipartObjectsSize_; } /** *
       * Total size of objects uploaded in multiple parts, in bytes.
       * 
* * int64 multipart_objects_size = 5; * @param value The multipartObjectsSize to set. * @return This builder for chaining. */ public Builder setMultipartObjectsSize(long value) { multipartObjectsSize_ = value; onChanged(); return this; } /** *
       * Total size of objects uploaded in multiple parts, in bytes.
       * 
* * int64 multipart_objects_size = 5; * @return This builder for chaining. */ public Builder clearMultipartObjectsSize() { multipartObjectsSize_ = 0L; onChanged(); return this; } private long multipartObjectsCount_ ; /** *
       * Number of objects uploaded in multiple parts.
       * 
* * int64 multipart_objects_count = 6; * @return The multipartObjectsCount. */ @java.lang.Override public long getMultipartObjectsCount() { return multipartObjectsCount_; } /** *
       * Number of objects uploaded in multiple parts.
       * 
* * int64 multipart_objects_count = 6; * @param value The multipartObjectsCount to set. * @return This builder for chaining. */ public Builder setMultipartObjectsCount(long value) { multipartObjectsCount_ = value; onChanged(); return this; } /** *
       * Number of objects uploaded in multiple parts.
       * 
* * int64 multipart_objects_count = 6; * @return This builder for chaining. */ public Builder clearMultipartObjectsCount() { multipartObjectsCount_ = 0L; onChanged(); return this; } private long activeMultipartCount_ ; /** *
       * Number of incomplete multipart uploads.
       * 
* * int64 active_multipart_count = 7; * @return The activeMultipartCount. */ @java.lang.Override public long getActiveMultipartCount() { return activeMultipartCount_; } /** *
       * Number of incomplete multipart uploads.
       * 
* * int64 active_multipart_count = 7; * @param value The activeMultipartCount to set. * @return This builder for chaining. */ public Builder setActiveMultipartCount(long value) { activeMultipartCount_ = value; onChanged(); return this; } /** *
       * Number of incomplete multipart uploads.
       * 
* * int64 active_multipart_count = 7; * @return This builder for chaining. */ public Builder clearActiveMultipartCount() { activeMultipartCount_ = 0L; 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.storage.v1.Counters) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.Counters) private static final yandex.cloud.api.storage.v1.BucketOuterClass.Counters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.Counters(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Counters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Counters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Counters(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.storage.v1.BucketOuterClass.Counters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalSizeByClassOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.OptionalSizeByClass) com.google.protobuf.MessageOrBuilder { /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The storageClass. */ java.lang.String getStorageClass(); /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The bytes for storageClass. */ com.google.protobuf.ByteString getStorageClassBytes(); /** *
     * Size of available space in the bucket for the storage class.
     * 
* * .google.protobuf.Int64Value class_size = 2; * @return Whether the classSize field is set. */ boolean hasClassSize(); /** *
     * Size of available space in the bucket for the storage class.
     * 
* * .google.protobuf.Int64Value class_size = 2; * @return The classSize. */ com.google.protobuf.Int64Value getClassSize(); /** *
     * Size of available space in the bucket for the storage class.
     * 
* * .google.protobuf.Int64Value class_size = 2; */ com.google.protobuf.Int64ValueOrBuilder getClassSizeOrBuilder(); } /** *
   * A resource for size of available space in a bucket for a storage class.
   * 
* * Protobuf type {@code yandex.cloud.storage.v1.OptionalSizeByClass} */ public static final class OptionalSizeByClass extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.OptionalSizeByClass) OptionalSizeByClassOrBuilder { private static final long serialVersionUID = 0L; // Use OptionalSizeByClass.newBuilder() to construct. private OptionalSizeByClass(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionalSizeByClass() { storageClass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionalSizeByClass(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionalSizeByClass( 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(); storageClass_ = s; break; } case 18: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (classSize_ != null) { subBuilder = classSize_.toBuilder(); } classSize_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(classSize_); classSize_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.class, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder.class); } public static final int STORAGE_CLASS_FIELD_NUMBER = 1; private volatile java.lang.Object storageClass_; /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The storageClass. */ @java.lang.Override public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; } } /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The bytes for storageClass. */ @java.lang.Override public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLASS_SIZE_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value classSize_; /** *
     * Size of available space in the bucket for the storage class.
     * 
* * .google.protobuf.Int64Value class_size = 2; * @return Whether the classSize field is set. */ @java.lang.Override public boolean hasClassSize() { return classSize_ != null; } /** *
     * Size of available space in the bucket for the storage class.
     * 
* * .google.protobuf.Int64Value class_size = 2; * @return The classSize. */ @java.lang.Override public com.google.protobuf.Int64Value getClassSize() { return classSize_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : classSize_; } /** *
     * Size of available space in the bucket for the storage class.
     * 
* * .google.protobuf.Int64Value class_size = 2; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getClassSizeOrBuilder() { return getClassSize(); } 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(storageClass_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storageClass_); } if (classSize_ != null) { output.writeMessage(2, getClassSize()); } 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(storageClass_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storageClass_); } if (classSize_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getClassSize()); } 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.storage.v1.BucketOuterClass.OptionalSizeByClass)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass other = (yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass) obj; if (!getStorageClass() .equals(other.getStorageClass())) return false; if (hasClassSize() != other.hasClassSize()) return false; if (hasClassSize()) { if (!getClassSize() .equals(other.getClassSize())) 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) + STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getStorageClass().hashCode(); if (hasClassSize()) { hash = (37 * hash) + CLASS_SIZE_FIELD_NUMBER; hash = (53 * hash) + getClassSize().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass 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.storage.v1.BucketOuterClass.OptionalSizeByClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass 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.storage.v1.BucketOuterClass.OptionalSizeByClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass 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.storage.v1.BucketOuterClass.OptionalSizeByClass parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass 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.storage.v1.BucketOuterClass.OptionalSizeByClass parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass 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.storage.v1.BucketOuterClass.OptionalSizeByClass 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; } /** *
     * A resource for size of available space in a bucket for a storage class.
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.OptionalSizeByClass} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.OptionalSizeByClass) yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClassOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.class, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.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(); storageClass_ = ""; if (classSizeBuilder_ == null) { classSize_ = null; } else { classSize_ = null; classSizeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass build() { yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass result = new yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass(this); result.storageClass_ = storageClass_; if (classSizeBuilder_ == null) { result.classSize_ = classSize_; } else { result.classSize_ = classSizeBuilder_.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.storage.v1.BucketOuterClass.OptionalSizeByClass) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.getDefaultInstance()) return this; if (!other.getStorageClass().isEmpty()) { storageClass_ = other.storageClass_; onChanged(); } if (other.hasClassSize()) { mergeClassSize(other.getClassSize()); } 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.storage.v1.BucketOuterClass.OptionalSizeByClass parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object storageClass_ = ""; /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @return The storageClass. */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @return The bytes for storageClass. */ public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @param value The storageClass to set. * @return This builder for chaining. */ public Builder setStorageClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } storageClass_ = value; onChanged(); return this; } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @return This builder for chaining. */ public Builder clearStorageClass() { storageClass_ = getDefaultInstance().getStorageClass(); onChanged(); return this; } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @param value The bytes for storageClass to set. * @return This builder for chaining. */ public Builder setStorageClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = value; onChanged(); return this; } private com.google.protobuf.Int64Value classSize_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> classSizeBuilder_; /** *
       * Size of available space in the bucket for the storage class.
       * 
* * .google.protobuf.Int64Value class_size = 2; * @return Whether the classSize field is set. */ public boolean hasClassSize() { return classSizeBuilder_ != null || classSize_ != null; } /** *
       * Size of available space in the bucket for the storage class.
       * 
* * .google.protobuf.Int64Value class_size = 2; * @return The classSize. */ public com.google.protobuf.Int64Value getClassSize() { if (classSizeBuilder_ == null) { return classSize_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : classSize_; } else { return classSizeBuilder_.getMessage(); } } /** *
       * Size of available space in the bucket for the storage class.
       * 
* * .google.protobuf.Int64Value class_size = 2; */ public Builder setClassSize(com.google.protobuf.Int64Value value) { if (classSizeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } classSize_ = value; onChanged(); } else { classSizeBuilder_.setMessage(value); } return this; } /** *
       * Size of available space in the bucket for the storage class.
       * 
* * .google.protobuf.Int64Value class_size = 2; */ public Builder setClassSize( com.google.protobuf.Int64Value.Builder builderForValue) { if (classSizeBuilder_ == null) { classSize_ = builderForValue.build(); onChanged(); } else { classSizeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Size of available space in the bucket for the storage class.
       * 
* * .google.protobuf.Int64Value class_size = 2; */ public Builder mergeClassSize(com.google.protobuf.Int64Value value) { if (classSizeBuilder_ == null) { if (classSize_ != null) { classSize_ = com.google.protobuf.Int64Value.newBuilder(classSize_).mergeFrom(value).buildPartial(); } else { classSize_ = value; } onChanged(); } else { classSizeBuilder_.mergeFrom(value); } return this; } /** *
       * Size of available space in the bucket for the storage class.
       * 
* * .google.protobuf.Int64Value class_size = 2; */ public Builder clearClassSize() { if (classSizeBuilder_ == null) { classSize_ = null; onChanged(); } else { classSize_ = null; classSizeBuilder_ = null; } return this; } /** *
       * Size of available space in the bucket for the storage class.
       * 
* * .google.protobuf.Int64Value class_size = 2; */ public com.google.protobuf.Int64Value.Builder getClassSizeBuilder() { onChanged(); return getClassSizeFieldBuilder().getBuilder(); } /** *
       * Size of available space in the bucket for the storage class.
       * 
* * .google.protobuf.Int64Value class_size = 2; */ public com.google.protobuf.Int64ValueOrBuilder getClassSizeOrBuilder() { if (classSizeBuilder_ != null) { return classSizeBuilder_.getMessageOrBuilder(); } else { return classSize_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : classSize_; } } /** *
       * Size of available space in the bucket for the storage class.
       * 
* * .google.protobuf.Int64Value class_size = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getClassSizeFieldBuilder() { if (classSizeBuilder_ == null) { classSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getClassSize(), getParentForChildren(), isClean()); classSize_ = null; } return classSizeBuilder_; } @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.storage.v1.OptionalSizeByClass) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.OptionalSizeByClass) private static final yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionalSizeByClass parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionalSizeByClass(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.storage.v1.BucketOuterClass.OptionalSizeByClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SizeByClassOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.SizeByClass) com.google.protobuf.MessageOrBuilder { /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The storageClass. */ java.lang.String getStorageClass(); /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The bytes for storageClass. */ com.google.protobuf.ByteString getStorageClassBytes(); /** *
     * Size of used space in the bucket for the storage class.
     * 
* * int64 class_size = 2; * @return The classSize. */ long getClassSize(); } /** *
   * A resource for size of used space in a bucket for a storage class.
   * 
* * Protobuf type {@code yandex.cloud.storage.v1.SizeByClass} */ public static final class SizeByClass extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.SizeByClass) SizeByClassOrBuilder { private static final long serialVersionUID = 0L; // Use SizeByClass.newBuilder() to construct. private SizeByClass(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SizeByClass() { storageClass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SizeByClass(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SizeByClass( 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(); storageClass_ = s; break; } case 16: { classSize_ = input.readInt64(); 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_SizeByClass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_SizeByClass_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.class, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder.class); } public static final int STORAGE_CLASS_FIELD_NUMBER = 1; private volatile java.lang.Object storageClass_; /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The storageClass. */ @java.lang.Override public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; } } /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The bytes for storageClass. */ @java.lang.Override public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLASS_SIZE_FIELD_NUMBER = 2; private long classSize_; /** *
     * Size of used space in the bucket for the storage class.
     * 
* * int64 class_size = 2; * @return The classSize. */ @java.lang.Override public long getClassSize() { return classSize_; } 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(storageClass_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storageClass_); } if (classSize_ != 0L) { output.writeInt64(2, classSize_); } 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(storageClass_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storageClass_); } if (classSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, classSize_); } 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.storage.v1.BucketOuterClass.SizeByClass)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass other = (yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass) obj; if (!getStorageClass() .equals(other.getStorageClass())) return false; if (getClassSize() != other.getClassSize()) 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) + STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getStorageClass().hashCode(); hash = (37 * hash) + CLASS_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClassSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass 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.storage.v1.BucketOuterClass.SizeByClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass 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.storage.v1.BucketOuterClass.SizeByClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass 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.storage.v1.BucketOuterClass.SizeByClass parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass 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.storage.v1.BucketOuterClass.SizeByClass parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass 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.storage.v1.BucketOuterClass.SizeByClass 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; } /** *
     * A resource for size of used space in a bucket for a storage class.
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.SizeByClass} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.SizeByClass) yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClassOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_SizeByClass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_SizeByClass_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.class, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.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(); storageClass_ = ""; classSize_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_SizeByClass_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass build() { yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass result = new yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass(this); result.storageClass_ = storageClass_; result.classSize_ = classSize_; 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.storage.v1.BucketOuterClass.SizeByClass) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.getDefaultInstance()) return this; if (!other.getStorageClass().isEmpty()) { storageClass_ = other.storageClass_; onChanged(); } if (other.getClassSize() != 0L) { setClassSize(other.getClassSize()); } 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.storage.v1.BucketOuterClass.SizeByClass parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object storageClass_ = ""; /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @return The storageClass. */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @return The bytes for storageClass. */ public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @param value The storageClass to set. * @return This builder for chaining. */ public Builder setStorageClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } storageClass_ = value; onChanged(); return this; } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @return This builder for chaining. */ public Builder clearStorageClass() { storageClass_ = getDefaultInstance().getStorageClass(); onChanged(); return this; } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @param value The bytes for storageClass to set. * @return This builder for chaining. */ public Builder setStorageClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = value; onChanged(); return this; } private long classSize_ ; /** *
       * Size of used space in the bucket for the storage class.
       * 
* * int64 class_size = 2; * @return The classSize. */ @java.lang.Override public long getClassSize() { return classSize_; } /** *
       * Size of used space in the bucket for the storage class.
       * 
* * int64 class_size = 2; * @param value The classSize to set. * @return This builder for chaining. */ public Builder setClassSize(long value) { classSize_ = value; onChanged(); return this; } /** *
       * Size of used space in the bucket for the storage class.
       * 
* * int64 class_size = 2; * @return This builder for chaining. */ public Builder clearClassSize() { classSize_ = 0L; 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.storage.v1.SizeByClass) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.SizeByClass) private static final yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SizeByClass parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SizeByClass(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.storage.v1.BucketOuterClass.SizeByClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CountersByClassOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.CountersByClass) com.google.protobuf.MessageOrBuilder { /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The storageClass. */ java.lang.String getStorageClass(); /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The bytes for storageClass. */ com.google.protobuf.ByteString getStorageClassBytes(); /** *
     * Object-related statistics for the storage class by type of upload.
     * 
* * .yandex.cloud.storage.v1.Counters counters = 2; * @return Whether the counters field is set. */ boolean hasCounters(); /** *
     * Object-related statistics for the storage class by type of upload.
     * 
* * .yandex.cloud.storage.v1.Counters counters = 2; * @return The counters. */ yandex.cloud.api.storage.v1.BucketOuterClass.Counters getCounters(); /** *
     * Object-related statistics for the storage class by type of upload.
     * 
* * .yandex.cloud.storage.v1.Counters counters = 2; */ yandex.cloud.api.storage.v1.BucketOuterClass.CountersOrBuilder getCountersOrBuilder(); } /** *
   * A resource for object-related statistics for a storage class by type of upload (simple vs. multipart).
   * 
* * Protobuf type {@code yandex.cloud.storage.v1.CountersByClass} */ public static final class CountersByClass extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.CountersByClass) CountersByClassOrBuilder { private static final long serialVersionUID = 0L; // Use CountersByClass.newBuilder() to construct. private CountersByClass(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CountersByClass() { storageClass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CountersByClass(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CountersByClass( 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(); storageClass_ = s; break; } case 18: { yandex.cloud.api.storage.v1.BucketOuterClass.Counters.Builder subBuilder = null; if (counters_ != null) { subBuilder = counters_.toBuilder(); } counters_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.Counters.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(counters_); counters_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CountersByClass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CountersByClass_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.class, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder.class); } public static final int STORAGE_CLASS_FIELD_NUMBER = 1; private volatile java.lang.Object storageClass_; /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The storageClass. */ @java.lang.Override public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; } } /** *
     * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
     * all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * string storage_class = 1; * @return The bytes for storageClass. */ @java.lang.Override public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COUNTERS_FIELD_NUMBER = 2; private yandex.cloud.api.storage.v1.BucketOuterClass.Counters counters_; /** *
     * Object-related statistics for the storage class by type of upload.
     * 
* * .yandex.cloud.storage.v1.Counters counters = 2; * @return Whether the counters field is set. */ @java.lang.Override public boolean hasCounters() { return counters_ != null; } /** *
     * Object-related statistics for the storage class by type of upload.
     * 
* * .yandex.cloud.storage.v1.Counters counters = 2; * @return The counters. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Counters getCounters() { return counters_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.Counters.getDefaultInstance() : counters_; } /** *
     * Object-related statistics for the storage class by type of upload.
     * 
* * .yandex.cloud.storage.v1.Counters counters = 2; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CountersOrBuilder getCountersOrBuilder() { return getCounters(); } 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(storageClass_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storageClass_); } if (counters_ != null) { output.writeMessage(2, getCounters()); } 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(storageClass_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storageClass_); } if (counters_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCounters()); } 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.storage.v1.BucketOuterClass.CountersByClass)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass other = (yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass) obj; if (!getStorageClass() .equals(other.getStorageClass())) return false; if (hasCounters() != other.hasCounters()) return false; if (hasCounters()) { if (!getCounters() .equals(other.getCounters())) 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) + STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getStorageClass().hashCode(); if (hasCounters()) { hash = (37 * hash) + COUNTERS_FIELD_NUMBER; hash = (53 * hash) + getCounters().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass 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.storage.v1.BucketOuterClass.CountersByClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass 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.storage.v1.BucketOuterClass.CountersByClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass 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.storage.v1.BucketOuterClass.CountersByClass parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass 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.storage.v1.BucketOuterClass.CountersByClass parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass 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.storage.v1.BucketOuterClass.CountersByClass 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; } /** *
     * A resource for object-related statistics for a storage class by type of upload (simple vs. multipart).
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.CountersByClass} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.CountersByClass) yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClassOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CountersByClass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CountersByClass_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.class, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.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(); storageClass_ = ""; if (countersBuilder_ == null) { counters_ = null; } else { counters_ = null; countersBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_CountersByClass_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass build() { yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass result = new yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass(this); result.storageClass_ = storageClass_; if (countersBuilder_ == null) { result.counters_ = counters_; } else { result.counters_ = countersBuilder_.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.storage.v1.BucketOuterClass.CountersByClass) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.getDefaultInstance()) return this; if (!other.getStorageClass().isEmpty()) { storageClass_ = other.storageClass_; onChanged(); } if (other.hasCounters()) { mergeCounters(other.getCounters()); } 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.storage.v1.BucketOuterClass.CountersByClass parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object storageClass_ = ""; /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @return The storageClass. */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @return The bytes for storageClass. */ public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @param value The storageClass to set. * @return This builder for chaining. */ public Builder setStorageClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } storageClass_ = value; onChanged(); return this; } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @return This builder for chaining. */ public Builder clearStorageClass() { storageClass_ = getDefaultInstance().getStorageClass(); onChanged(); return this; } /** *
       * Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
       * all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * string storage_class = 1; * @param value The bytes for storageClass to set. * @return This builder for chaining. */ public Builder setStorageClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = value; onChanged(); return this; } private yandex.cloud.api.storage.v1.BucketOuterClass.Counters counters_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Counters, yandex.cloud.api.storage.v1.BucketOuterClass.Counters.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.CountersOrBuilder> countersBuilder_; /** *
       * Object-related statistics for the storage class by type of upload.
       * 
* * .yandex.cloud.storage.v1.Counters counters = 2; * @return Whether the counters field is set. */ public boolean hasCounters() { return countersBuilder_ != null || counters_ != null; } /** *
       * Object-related statistics for the storage class by type of upload.
       * 
* * .yandex.cloud.storage.v1.Counters counters = 2; * @return The counters. */ public yandex.cloud.api.storage.v1.BucketOuterClass.Counters getCounters() { if (countersBuilder_ == null) { return counters_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.Counters.getDefaultInstance() : counters_; } else { return countersBuilder_.getMessage(); } } /** *
       * Object-related statistics for the storage class by type of upload.
       * 
* * .yandex.cloud.storage.v1.Counters counters = 2; */ public Builder setCounters(yandex.cloud.api.storage.v1.BucketOuterClass.Counters value) { if (countersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } counters_ = value; onChanged(); } else { countersBuilder_.setMessage(value); } return this; } /** *
       * Object-related statistics for the storage class by type of upload.
       * 
* * .yandex.cloud.storage.v1.Counters counters = 2; */ public Builder setCounters( yandex.cloud.api.storage.v1.BucketOuterClass.Counters.Builder builderForValue) { if (countersBuilder_ == null) { counters_ = builderForValue.build(); onChanged(); } else { countersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Object-related statistics for the storage class by type of upload.
       * 
* * .yandex.cloud.storage.v1.Counters counters = 2; */ public Builder mergeCounters(yandex.cloud.api.storage.v1.BucketOuterClass.Counters value) { if (countersBuilder_ == null) { if (counters_ != null) { counters_ = yandex.cloud.api.storage.v1.BucketOuterClass.Counters.newBuilder(counters_).mergeFrom(value).buildPartial(); } else { counters_ = value; } onChanged(); } else { countersBuilder_.mergeFrom(value); } return this; } /** *
       * Object-related statistics for the storage class by type of upload.
       * 
* * .yandex.cloud.storage.v1.Counters counters = 2; */ public Builder clearCounters() { if (countersBuilder_ == null) { counters_ = null; onChanged(); } else { counters_ = null; countersBuilder_ = null; } return this; } /** *
       * Object-related statistics for the storage class by type of upload.
       * 
* * .yandex.cloud.storage.v1.Counters counters = 2; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Counters.Builder getCountersBuilder() { onChanged(); return getCountersFieldBuilder().getBuilder(); } /** *
       * Object-related statistics for the storage class by type of upload.
       * 
* * .yandex.cloud.storage.v1.Counters counters = 2; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CountersOrBuilder getCountersOrBuilder() { if (countersBuilder_ != null) { return countersBuilder_.getMessageOrBuilder(); } else { return counters_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.Counters.getDefaultInstance() : counters_; } } /** *
       * Object-related statistics for the storage class by type of upload.
       * 
* * .yandex.cloud.storage.v1.Counters counters = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Counters, yandex.cloud.api.storage.v1.BucketOuterClass.Counters.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.CountersOrBuilder> getCountersFieldBuilder() { if (countersBuilder_ == null) { countersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Counters, yandex.cloud.api.storage.v1.BucketOuterClass.Counters.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.CountersOrBuilder>( getCounters(), getParentForChildren(), isClean()); counters_ = null; } return countersBuilder_; } @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.storage.v1.CountersByClass) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.CountersByClass) private static final yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CountersByClass parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CountersByClass(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.storage.v1.BucketOuterClass.CountersByClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BucketStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.BucketStats) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the bucket.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the bucket.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Maximum size of the bucket, in bytes.
     * 
* * .google.protobuf.Int64Value max_size = 2; * @return Whether the maxSize field is set. */ boolean hasMaxSize(); /** *
     * Maximum size of the bucket, in bytes.
     * 
* * .google.protobuf.Int64Value max_size = 2; * @return The maxSize. */ com.google.protobuf.Int64Value getMaxSize(); /** *
     * Maximum size of the bucket, in bytes.
     * 
* * .google.protobuf.Int64Value max_size = 2; */ com.google.protobuf.Int64ValueOrBuilder getMaxSizeOrBuilder(); /** *
     * Size of used space in the bucket, in bytes.
     * 
* * int64 used_size = 3; * @return The usedSize. */ long getUsedSize(); /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ java.util.List getStorageClassMaxSizesList(); /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass getStorageClassMaxSizes(int index); /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ int getStorageClassMaxSizesCount(); /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ java.util.List getStorageClassMaxSizesOrBuilderList(); /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClassOrBuilder getStorageClassMaxSizesOrBuilder( int index); /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ java.util.List getStorageClassUsedSizesList(); /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass getStorageClassUsedSizes(int index); /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ int getStorageClassUsedSizesCount(); /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ java.util.List getStorageClassUsedSizesOrBuilderList(); /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClassOrBuilder getStorageClassUsedSizesOrBuilder( int index); /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ java.util.List getStorageClassCountersList(); /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass getStorageClassCounters(int index); /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ int getStorageClassCountersCount(); /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ java.util.List getStorageClassCountersOrBuilderList(); /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClassOrBuilder getStorageClassCountersOrBuilder( int index); /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * .google.protobuf.StringValue default_storage_class = 7; * @return Whether the defaultStorageClass field is set. */ boolean hasDefaultStorageClass(); /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * .google.protobuf.StringValue default_storage_class = 7; * @return The defaultStorageClass. */ com.google.protobuf.StringValue getDefaultStorageClass(); /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * .google.protobuf.StringValue default_storage_class = 7; */ com.google.protobuf.StringValueOrBuilder getDefaultStorageClassOrBuilder(); /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; * @return Whether the anonymousAccessFlags field is set. */ boolean hasAnonymousAccessFlags(); /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; * @return The anonymousAccessFlags. */ yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags getAnonymousAccessFlags(); /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; */ yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder getAnonymousAccessFlagsOrBuilder(); /** *
     * Bucket creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 9; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Bucket creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 9; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Bucket creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 9; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Bucket latest update timestamp.
     * 
* * .google.protobuf.Timestamp updated_at = 10; * @return Whether the updatedAt field is set. */ boolean hasUpdatedAt(); /** *
     * Bucket latest update timestamp.
     * 
* * .google.protobuf.Timestamp updated_at = 10; * @return The updatedAt. */ com.google.protobuf.Timestamp getUpdatedAt(); /** *
     * Bucket latest update timestamp.
     * 
* * .google.protobuf.Timestamp updated_at = 10; */ com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); } /** *
   * A bucket statistics resource.
   * 
* * Protobuf type {@code yandex.cloud.storage.v1.BucketStats} */ public static final class BucketStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.BucketStats) BucketStatsOrBuilder { private static final long serialVersionUID = 0L; // Use BucketStats.newBuilder() to construct. private BucketStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BucketStats() { name_ = ""; storageClassMaxSizes_ = java.util.Collections.emptyList(); storageClassUsedSizes_ = java.util.Collections.emptyList(); storageClassCounters_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BucketStats(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BucketStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (maxSize_ != null) { subBuilder = maxSize_.toBuilder(); } maxSize_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxSize_); maxSize_ = subBuilder.buildPartial(); } break; } case 24: { usedSize_ = input.readInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { storageClassMaxSizes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } storageClassMaxSizes_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.parser(), extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { storageClassUsedSizes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } storageClassUsedSizes_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { storageClassCounters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } storageClassCounters_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.parser(), extensionRegistry)); break; } case 58: { com.google.protobuf.StringValue.Builder subBuilder = null; if (defaultStorageClass_ != null) { subBuilder = defaultStorageClass_.toBuilder(); } defaultStorageClass_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(defaultStorageClass_); defaultStorageClass_ = subBuilder.buildPartial(); } break; } case 66: { yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder subBuilder = null; if (anonymousAccessFlags_ != null) { subBuilder = anonymousAccessFlags_.toBuilder(); } anonymousAccessFlags_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(anonymousAccessFlags_); anonymousAccessFlags_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 82: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (updatedAt_ != null) { subBuilder = updatedAt_.toBuilder(); } updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updatedAt_); updatedAt_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { storageClassMaxSizes_ = java.util.Collections.unmodifiableList(storageClassMaxSizes_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { storageClassUsedSizes_ = java.util.Collections.unmodifiableList(storageClassUsedSizes_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { storageClassCounters_ = java.util.Collections.unmodifiableList(storageClassCounters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_BucketStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_BucketStats_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats.class, yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the bucket.
     * 
* * 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 bucket.
     * 
* * 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; } } public static final int MAX_SIZE_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value maxSize_; /** *
     * Maximum size of the bucket, in bytes.
     * 
* * .google.protobuf.Int64Value max_size = 2; * @return Whether the maxSize field is set. */ @java.lang.Override public boolean hasMaxSize() { return maxSize_ != null; } /** *
     * Maximum size of the bucket, in bytes.
     * 
* * .google.protobuf.Int64Value max_size = 2; * @return The maxSize. */ @java.lang.Override public com.google.protobuf.Int64Value getMaxSize() { return maxSize_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxSize_; } /** *
     * Maximum size of the bucket, in bytes.
     * 
* * .google.protobuf.Int64Value max_size = 2; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMaxSizeOrBuilder() { return getMaxSize(); } public static final int USED_SIZE_FIELD_NUMBER = 3; private long usedSize_; /** *
     * Size of used space in the bucket, in bytes.
     * 
* * int64 used_size = 3; * @return The usedSize. */ @java.lang.Override public long getUsedSize() { return usedSize_; } public static final int STORAGE_CLASS_MAX_SIZES_FIELD_NUMBER = 4; private java.util.List storageClassMaxSizes_; /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ @java.lang.Override public java.util.List getStorageClassMaxSizesList() { return storageClassMaxSizes_; } /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ @java.lang.Override public java.util.List getStorageClassMaxSizesOrBuilderList() { return storageClassMaxSizes_; } /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ @java.lang.Override public int getStorageClassMaxSizesCount() { return storageClassMaxSizes_.size(); } /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass getStorageClassMaxSizes(int index) { return storageClassMaxSizes_.get(index); } /** *
     * Size of available space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClassOrBuilder getStorageClassMaxSizesOrBuilder( int index) { return storageClassMaxSizes_.get(index); } public static final int STORAGE_CLASS_USED_SIZES_FIELD_NUMBER = 5; private java.util.List storageClassUsedSizes_; /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ @java.lang.Override public java.util.List getStorageClassUsedSizesList() { return storageClassUsedSizes_; } /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ @java.lang.Override public java.util.List getStorageClassUsedSizesOrBuilderList() { return storageClassUsedSizes_; } /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ @java.lang.Override public int getStorageClassUsedSizesCount() { return storageClassUsedSizes_.size(); } /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass getStorageClassUsedSizes(int index) { return storageClassUsedSizes_.get(index); } /** *
     * Size of used space in the bucket by storage class, in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClassOrBuilder getStorageClassUsedSizesOrBuilder( int index) { return storageClassUsedSizes_.get(index); } public static final int STORAGE_CLASS_COUNTERS_FIELD_NUMBER = 6; private java.util.List storageClassCounters_; /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ @java.lang.Override public java.util.List getStorageClassCountersList() { return storageClassCounters_; } /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ @java.lang.Override public java.util.List getStorageClassCountersOrBuilderList() { return storageClassCounters_; } /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ @java.lang.Override public int getStorageClassCountersCount() { return storageClassCounters_.size(); } /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass getStorageClassCounters(int index) { return storageClassCounters_.get(index); } /** *
     * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
     * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClassOrBuilder getStorageClassCountersOrBuilder( int index) { return storageClassCounters_.get(index); } public static final int DEFAULT_STORAGE_CLASS_FIELD_NUMBER = 7; private com.google.protobuf.StringValue defaultStorageClass_; /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * .google.protobuf.StringValue default_storage_class = 7; * @return Whether the defaultStorageClass field is set. */ @java.lang.Override public boolean hasDefaultStorageClass() { return defaultStorageClass_ != null; } /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * .google.protobuf.StringValue default_storage_class = 7; * @return The defaultStorageClass. */ @java.lang.Override public com.google.protobuf.StringValue getDefaultStorageClass() { return defaultStorageClass_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : defaultStorageClass_; } /** *
     * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
     * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
     * For details, see [documentation](/docs/storage/concepts/storage-class).
     * 
* * .google.protobuf.StringValue default_storage_class = 7; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getDefaultStorageClassOrBuilder() { return getDefaultStorageClass(); } public static final int ANONYMOUS_ACCESS_FLAGS_FIELD_NUMBER = 8; private yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags anonymousAccessFlags_; /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; * @return Whether the anonymousAccessFlags field is set. */ @java.lang.Override public boolean hasAnonymousAccessFlags() { return anonymousAccessFlags_ != null; } /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; * @return The anonymousAccessFlags. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags getAnonymousAccessFlags() { return anonymousAccessFlags_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.getDefaultInstance() : anonymousAccessFlags_; } /** *
     * Flags for configuring public (anonymous) access to the bucket's content and settings.
     * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
     * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder getAnonymousAccessFlagsOrBuilder() { return getAnonymousAccessFlags(); } public static final int CREATED_AT_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createdAt_; /** *
     * Bucket creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 9; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Bucket creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 9; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Bucket creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int UPDATED_AT_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updatedAt_; /** *
     * Bucket latest update timestamp.
     * 
* * .google.protobuf.Timestamp updated_at = 10; * @return Whether the updatedAt field is set. */ @java.lang.Override public boolean hasUpdatedAt() { return updatedAt_ != null; } /** *
     * Bucket latest update timestamp.
     * 
* * .google.protobuf.Timestamp updated_at = 10; * @return The updatedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdatedAt() { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } /** *
     * Bucket latest update timestamp.
     * 
* * .google.protobuf.Timestamp updated_at = 10; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { return getUpdatedAt(); } 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_); } if (maxSize_ != null) { output.writeMessage(2, getMaxSize()); } if (usedSize_ != 0L) { output.writeInt64(3, usedSize_); } for (int i = 0; i < storageClassMaxSizes_.size(); i++) { output.writeMessage(4, storageClassMaxSizes_.get(i)); } for (int i = 0; i < storageClassUsedSizes_.size(); i++) { output.writeMessage(5, storageClassUsedSizes_.get(i)); } for (int i = 0; i < storageClassCounters_.size(); i++) { output.writeMessage(6, storageClassCounters_.get(i)); } if (defaultStorageClass_ != null) { output.writeMessage(7, getDefaultStorageClass()); } if (anonymousAccessFlags_ != null) { output.writeMessage(8, getAnonymousAccessFlags()); } if (createdAt_ != null) { output.writeMessage(9, getCreatedAt()); } if (updatedAt_ != null) { output.writeMessage(10, getUpdatedAt()); } 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_); } if (maxSize_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxSize()); } if (usedSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, usedSize_); } for (int i = 0; i < storageClassMaxSizes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, storageClassMaxSizes_.get(i)); } for (int i = 0; i < storageClassUsedSizes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, storageClassUsedSizes_.get(i)); } for (int i = 0; i < storageClassCounters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, storageClassCounters_.get(i)); } if (defaultStorageClass_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getDefaultStorageClass()); } if (anonymousAccessFlags_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getAnonymousAccessFlags()); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getCreatedAt()); } if (updatedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getUpdatedAt()); } 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.storage.v1.BucketOuterClass.BucketStats)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats other = (yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats) obj; if (!getName() .equals(other.getName())) return false; if (hasMaxSize() != other.hasMaxSize()) return false; if (hasMaxSize()) { if (!getMaxSize() .equals(other.getMaxSize())) return false; } if (getUsedSize() != other.getUsedSize()) return false; if (!getStorageClassMaxSizesList() .equals(other.getStorageClassMaxSizesList())) return false; if (!getStorageClassUsedSizesList() .equals(other.getStorageClassUsedSizesList())) return false; if (!getStorageClassCountersList() .equals(other.getStorageClassCountersList())) return false; if (hasDefaultStorageClass() != other.hasDefaultStorageClass()) return false; if (hasDefaultStorageClass()) { if (!getDefaultStorageClass() .equals(other.getDefaultStorageClass())) return false; } if (hasAnonymousAccessFlags() != other.hasAnonymousAccessFlags()) return false; if (hasAnonymousAccessFlags()) { if (!getAnonymousAccessFlags() .equals(other.getAnonymousAccessFlags())) return false; } if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasUpdatedAt() != other.hasUpdatedAt()) return false; if (hasUpdatedAt()) { if (!getUpdatedAt() .equals(other.getUpdatedAt())) 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(); if (hasMaxSize()) { hash = (37 * hash) + MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + getMaxSize().hashCode(); } hash = (37 * hash) + USED_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUsedSize()); if (getStorageClassMaxSizesCount() > 0) { hash = (37 * hash) + STORAGE_CLASS_MAX_SIZES_FIELD_NUMBER; hash = (53 * hash) + getStorageClassMaxSizesList().hashCode(); } if (getStorageClassUsedSizesCount() > 0) { hash = (37 * hash) + STORAGE_CLASS_USED_SIZES_FIELD_NUMBER; hash = (53 * hash) + getStorageClassUsedSizesList().hashCode(); } if (getStorageClassCountersCount() > 0) { hash = (37 * hash) + STORAGE_CLASS_COUNTERS_FIELD_NUMBER; hash = (53 * hash) + getStorageClassCountersList().hashCode(); } if (hasDefaultStorageClass()) { hash = (37 * hash) + DEFAULT_STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getDefaultStorageClass().hashCode(); } if (hasAnonymousAccessFlags()) { hash = (37 * hash) + ANONYMOUS_ACCESS_FLAGS_FIELD_NUMBER; hash = (53 * hash) + getAnonymousAccessFlags().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasUpdatedAt()) { hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; hash = (53 * hash) + getUpdatedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats 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.storage.v1.BucketOuterClass.BucketStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats 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.storage.v1.BucketOuterClass.BucketStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats 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.storage.v1.BucketOuterClass.BucketStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats 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.storage.v1.BucketOuterClass.BucketStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats 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.storage.v1.BucketOuterClass.BucketStats 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; } /** *
     * A bucket statistics resource.
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.BucketStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.BucketStats) yandex.cloud.api.storage.v1.BucketOuterClass.BucketStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_BucketStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_BucketStats_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats.class, yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStorageClassMaxSizesFieldBuilder(); getStorageClassUsedSizesFieldBuilder(); getStorageClassCountersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; if (maxSizeBuilder_ == null) { maxSize_ = null; } else { maxSize_ = null; maxSizeBuilder_ = null; } usedSize_ = 0L; if (storageClassMaxSizesBuilder_ == null) { storageClassMaxSizes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { storageClassMaxSizesBuilder_.clear(); } if (storageClassUsedSizesBuilder_ == null) { storageClassUsedSizes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { storageClassUsedSizesBuilder_.clear(); } if (storageClassCountersBuilder_ == null) { storageClassCounters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { storageClassCountersBuilder_.clear(); } if (defaultStorageClassBuilder_ == null) { defaultStorageClass_ = null; } else { defaultStorageClass_ = null; defaultStorageClassBuilder_ = null; } if (anonymousAccessFlagsBuilder_ == null) { anonymousAccessFlags_ = null; } else { anonymousAccessFlags_ = null; anonymousAccessFlagsBuilder_ = null; } if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (updatedAtBuilder_ == null) { updatedAt_ = null; } else { updatedAt_ = null; updatedAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_BucketStats_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats build() { yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats result = new yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (maxSizeBuilder_ == null) { result.maxSize_ = maxSize_; } else { result.maxSize_ = maxSizeBuilder_.build(); } result.usedSize_ = usedSize_; if (storageClassMaxSizesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { storageClassMaxSizes_ = java.util.Collections.unmodifiableList(storageClassMaxSizes_); bitField0_ = (bitField0_ & ~0x00000001); } result.storageClassMaxSizes_ = storageClassMaxSizes_; } else { result.storageClassMaxSizes_ = storageClassMaxSizesBuilder_.build(); } if (storageClassUsedSizesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { storageClassUsedSizes_ = java.util.Collections.unmodifiableList(storageClassUsedSizes_); bitField0_ = (bitField0_ & ~0x00000002); } result.storageClassUsedSizes_ = storageClassUsedSizes_; } else { result.storageClassUsedSizes_ = storageClassUsedSizesBuilder_.build(); } if (storageClassCountersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { storageClassCounters_ = java.util.Collections.unmodifiableList(storageClassCounters_); bitField0_ = (bitField0_ & ~0x00000004); } result.storageClassCounters_ = storageClassCounters_; } else { result.storageClassCounters_ = storageClassCountersBuilder_.build(); } if (defaultStorageClassBuilder_ == null) { result.defaultStorageClass_ = defaultStorageClass_; } else { result.defaultStorageClass_ = defaultStorageClassBuilder_.build(); } if (anonymousAccessFlagsBuilder_ == null) { result.anonymousAccessFlags_ = anonymousAccessFlags_; } else { result.anonymousAccessFlags_ = anonymousAccessFlagsBuilder_.build(); } if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (updatedAtBuilder_ == null) { result.updatedAt_ = updatedAt_; } else { result.updatedAt_ = updatedAtBuilder_.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.storage.v1.BucketOuterClass.BucketStats) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasMaxSize()) { mergeMaxSize(other.getMaxSize()); } if (other.getUsedSize() != 0L) { setUsedSize(other.getUsedSize()); } if (storageClassMaxSizesBuilder_ == null) { if (!other.storageClassMaxSizes_.isEmpty()) { if (storageClassMaxSizes_.isEmpty()) { storageClassMaxSizes_ = other.storageClassMaxSizes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStorageClassMaxSizesIsMutable(); storageClassMaxSizes_.addAll(other.storageClassMaxSizes_); } onChanged(); } } else { if (!other.storageClassMaxSizes_.isEmpty()) { if (storageClassMaxSizesBuilder_.isEmpty()) { storageClassMaxSizesBuilder_.dispose(); storageClassMaxSizesBuilder_ = null; storageClassMaxSizes_ = other.storageClassMaxSizes_; bitField0_ = (bitField0_ & ~0x00000001); storageClassMaxSizesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStorageClassMaxSizesFieldBuilder() : null; } else { storageClassMaxSizesBuilder_.addAllMessages(other.storageClassMaxSizes_); } } } if (storageClassUsedSizesBuilder_ == null) { if (!other.storageClassUsedSizes_.isEmpty()) { if (storageClassUsedSizes_.isEmpty()) { storageClassUsedSizes_ = other.storageClassUsedSizes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStorageClassUsedSizesIsMutable(); storageClassUsedSizes_.addAll(other.storageClassUsedSizes_); } onChanged(); } } else { if (!other.storageClassUsedSizes_.isEmpty()) { if (storageClassUsedSizesBuilder_.isEmpty()) { storageClassUsedSizesBuilder_.dispose(); storageClassUsedSizesBuilder_ = null; storageClassUsedSizes_ = other.storageClassUsedSizes_; bitField0_ = (bitField0_ & ~0x00000002); storageClassUsedSizesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStorageClassUsedSizesFieldBuilder() : null; } else { storageClassUsedSizesBuilder_.addAllMessages(other.storageClassUsedSizes_); } } } if (storageClassCountersBuilder_ == null) { if (!other.storageClassCounters_.isEmpty()) { if (storageClassCounters_.isEmpty()) { storageClassCounters_ = other.storageClassCounters_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureStorageClassCountersIsMutable(); storageClassCounters_.addAll(other.storageClassCounters_); } onChanged(); } } else { if (!other.storageClassCounters_.isEmpty()) { if (storageClassCountersBuilder_.isEmpty()) { storageClassCountersBuilder_.dispose(); storageClassCountersBuilder_ = null; storageClassCounters_ = other.storageClassCounters_; bitField0_ = (bitField0_ & ~0x00000004); storageClassCountersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStorageClassCountersFieldBuilder() : null; } else { storageClassCountersBuilder_.addAllMessages(other.storageClassCounters_); } } } if (other.hasDefaultStorageClass()) { mergeDefaultStorageClass(other.getDefaultStorageClass()); } if (other.hasAnonymousAccessFlags()) { mergeAnonymousAccessFlags(other.getAnonymousAccessFlags()); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasUpdatedAt()) { mergeUpdatedAt(other.getUpdatedAt()); } 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.storage.v1.BucketOuterClass.BucketStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Name of the bucket.
       * 
* * 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 bucket.
       * 
* * 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 bucket.
       * 
* * 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 bucket.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the bucket.
       * 
* * 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; } private com.google.protobuf.Int64Value maxSize_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxSizeBuilder_; /** *
       * Maximum size of the bucket, in bytes.
       * 
* * .google.protobuf.Int64Value max_size = 2; * @return Whether the maxSize field is set. */ public boolean hasMaxSize() { return maxSizeBuilder_ != null || maxSize_ != null; } /** *
       * Maximum size of the bucket, in bytes.
       * 
* * .google.protobuf.Int64Value max_size = 2; * @return The maxSize. */ public com.google.protobuf.Int64Value getMaxSize() { if (maxSizeBuilder_ == null) { return maxSize_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxSize_; } else { return maxSizeBuilder_.getMessage(); } } /** *
       * Maximum size of the bucket, in bytes.
       * 
* * .google.protobuf.Int64Value max_size = 2; */ public Builder setMaxSize(com.google.protobuf.Int64Value value) { if (maxSizeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxSize_ = value; onChanged(); } else { maxSizeBuilder_.setMessage(value); } return this; } /** *
       * Maximum size of the bucket, in bytes.
       * 
* * .google.protobuf.Int64Value max_size = 2; */ public Builder setMaxSize( com.google.protobuf.Int64Value.Builder builderForValue) { if (maxSizeBuilder_ == null) { maxSize_ = builderForValue.build(); onChanged(); } else { maxSizeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Maximum size of the bucket, in bytes.
       * 
* * .google.protobuf.Int64Value max_size = 2; */ public Builder mergeMaxSize(com.google.protobuf.Int64Value value) { if (maxSizeBuilder_ == null) { if (maxSize_ != null) { maxSize_ = com.google.protobuf.Int64Value.newBuilder(maxSize_).mergeFrom(value).buildPartial(); } else { maxSize_ = value; } onChanged(); } else { maxSizeBuilder_.mergeFrom(value); } return this; } /** *
       * Maximum size of the bucket, in bytes.
       * 
* * .google.protobuf.Int64Value max_size = 2; */ public Builder clearMaxSize() { if (maxSizeBuilder_ == null) { maxSize_ = null; onChanged(); } else { maxSize_ = null; maxSizeBuilder_ = null; } return this; } /** *
       * Maximum size of the bucket, in bytes.
       * 
* * .google.protobuf.Int64Value max_size = 2; */ public com.google.protobuf.Int64Value.Builder getMaxSizeBuilder() { onChanged(); return getMaxSizeFieldBuilder().getBuilder(); } /** *
       * Maximum size of the bucket, in bytes.
       * 
* * .google.protobuf.Int64Value max_size = 2; */ public com.google.protobuf.Int64ValueOrBuilder getMaxSizeOrBuilder() { if (maxSizeBuilder_ != null) { return maxSizeBuilder_.getMessageOrBuilder(); } else { return maxSize_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxSize_; } } /** *
       * Maximum size of the bucket, in bytes.
       * 
* * .google.protobuf.Int64Value max_size = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMaxSizeFieldBuilder() { if (maxSizeBuilder_ == null) { maxSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMaxSize(), getParentForChildren(), isClean()); maxSize_ = null; } return maxSizeBuilder_; } private long usedSize_ ; /** *
       * Size of used space in the bucket, in bytes.
       * 
* * int64 used_size = 3; * @return The usedSize. */ @java.lang.Override public long getUsedSize() { return usedSize_; } /** *
       * Size of used space in the bucket, in bytes.
       * 
* * int64 used_size = 3; * @param value The usedSize to set. * @return This builder for chaining. */ public Builder setUsedSize(long value) { usedSize_ = value; onChanged(); return this; } /** *
       * Size of used space in the bucket, in bytes.
       * 
* * int64 used_size = 3; * @return This builder for chaining. */ public Builder clearUsedSize() { usedSize_ = 0L; onChanged(); return this; } private java.util.List storageClassMaxSizes_ = java.util.Collections.emptyList(); private void ensureStorageClassMaxSizesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { storageClassMaxSizes_ = new java.util.ArrayList(storageClassMaxSizes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClassOrBuilder> storageClassMaxSizesBuilder_; /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public java.util.List getStorageClassMaxSizesList() { if (storageClassMaxSizesBuilder_ == null) { return java.util.Collections.unmodifiableList(storageClassMaxSizes_); } else { return storageClassMaxSizesBuilder_.getMessageList(); } } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public int getStorageClassMaxSizesCount() { if (storageClassMaxSizesBuilder_ == null) { return storageClassMaxSizes_.size(); } else { return storageClassMaxSizesBuilder_.getCount(); } } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass getStorageClassMaxSizes(int index) { if (storageClassMaxSizesBuilder_ == null) { return storageClassMaxSizes_.get(index); } else { return storageClassMaxSizesBuilder_.getMessage(index); } } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public Builder setStorageClassMaxSizes( int index, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass value) { if (storageClassMaxSizesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageClassMaxSizesIsMutable(); storageClassMaxSizes_.set(index, value); onChanged(); } else { storageClassMaxSizesBuilder_.setMessage(index, value); } return this; } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public Builder setStorageClassMaxSizes( int index, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder builderForValue) { if (storageClassMaxSizesBuilder_ == null) { ensureStorageClassMaxSizesIsMutable(); storageClassMaxSizes_.set(index, builderForValue.build()); onChanged(); } else { storageClassMaxSizesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public Builder addStorageClassMaxSizes(yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass value) { if (storageClassMaxSizesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageClassMaxSizesIsMutable(); storageClassMaxSizes_.add(value); onChanged(); } else { storageClassMaxSizesBuilder_.addMessage(value); } return this; } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public Builder addStorageClassMaxSizes( int index, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass value) { if (storageClassMaxSizesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageClassMaxSizesIsMutable(); storageClassMaxSizes_.add(index, value); onChanged(); } else { storageClassMaxSizesBuilder_.addMessage(index, value); } return this; } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public Builder addStorageClassMaxSizes( yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder builderForValue) { if (storageClassMaxSizesBuilder_ == null) { ensureStorageClassMaxSizesIsMutable(); storageClassMaxSizes_.add(builderForValue.build()); onChanged(); } else { storageClassMaxSizesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public Builder addStorageClassMaxSizes( int index, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder builderForValue) { if (storageClassMaxSizesBuilder_ == null) { ensureStorageClassMaxSizesIsMutable(); storageClassMaxSizes_.add(index, builderForValue.build()); onChanged(); } else { storageClassMaxSizesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public Builder addAllStorageClassMaxSizes( java.lang.Iterable values) { if (storageClassMaxSizesBuilder_ == null) { ensureStorageClassMaxSizesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, storageClassMaxSizes_); onChanged(); } else { storageClassMaxSizesBuilder_.addAllMessages(values); } return this; } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public Builder clearStorageClassMaxSizes() { if (storageClassMaxSizesBuilder_ == null) { storageClassMaxSizes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { storageClassMaxSizesBuilder_.clear(); } return this; } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public Builder removeStorageClassMaxSizes(int index) { if (storageClassMaxSizesBuilder_ == null) { ensureStorageClassMaxSizesIsMutable(); storageClassMaxSizes_.remove(index); onChanged(); } else { storageClassMaxSizesBuilder_.remove(index); } return this; } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder getStorageClassMaxSizesBuilder( int index) { return getStorageClassMaxSizesFieldBuilder().getBuilder(index); } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClassOrBuilder getStorageClassMaxSizesOrBuilder( int index) { if (storageClassMaxSizesBuilder_ == null) { return storageClassMaxSizes_.get(index); } else { return storageClassMaxSizesBuilder_.getMessageOrBuilder(index); } } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public java.util.List getStorageClassMaxSizesOrBuilderList() { if (storageClassMaxSizesBuilder_ != null) { return storageClassMaxSizesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(storageClassMaxSizes_); } } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder addStorageClassMaxSizesBuilder() { return getStorageClassMaxSizesFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.getDefaultInstance()); } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder addStorageClassMaxSizesBuilder( int index) { return getStorageClassMaxSizesFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.getDefaultInstance()); } /** *
       * Size of available space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.OptionalSizeByClass storage_class_max_sizes = 4; */ public java.util.List getStorageClassMaxSizesBuilderList() { return getStorageClassMaxSizesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClassOrBuilder> getStorageClassMaxSizesFieldBuilder() { if (storageClassMaxSizesBuilder_ == null) { storageClassMaxSizesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClass.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.OptionalSizeByClassOrBuilder>( storageClassMaxSizes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); storageClassMaxSizes_ = null; } return storageClassMaxSizesBuilder_; } private java.util.List storageClassUsedSizes_ = java.util.Collections.emptyList(); private void ensureStorageClassUsedSizesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { storageClassUsedSizes_ = new java.util.ArrayList(storageClassUsedSizes_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClassOrBuilder> storageClassUsedSizesBuilder_; /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public java.util.List getStorageClassUsedSizesList() { if (storageClassUsedSizesBuilder_ == null) { return java.util.Collections.unmodifiableList(storageClassUsedSizes_); } else { return storageClassUsedSizesBuilder_.getMessageList(); } } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public int getStorageClassUsedSizesCount() { if (storageClassUsedSizesBuilder_ == null) { return storageClassUsedSizes_.size(); } else { return storageClassUsedSizesBuilder_.getCount(); } } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass getStorageClassUsedSizes(int index) { if (storageClassUsedSizesBuilder_ == null) { return storageClassUsedSizes_.get(index); } else { return storageClassUsedSizesBuilder_.getMessage(index); } } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public Builder setStorageClassUsedSizes( int index, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass value) { if (storageClassUsedSizesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageClassUsedSizesIsMutable(); storageClassUsedSizes_.set(index, value); onChanged(); } else { storageClassUsedSizesBuilder_.setMessage(index, value); } return this; } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public Builder setStorageClassUsedSizes( int index, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder builderForValue) { if (storageClassUsedSizesBuilder_ == null) { ensureStorageClassUsedSizesIsMutable(); storageClassUsedSizes_.set(index, builderForValue.build()); onChanged(); } else { storageClassUsedSizesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public Builder addStorageClassUsedSizes(yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass value) { if (storageClassUsedSizesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageClassUsedSizesIsMutable(); storageClassUsedSizes_.add(value); onChanged(); } else { storageClassUsedSizesBuilder_.addMessage(value); } return this; } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public Builder addStorageClassUsedSizes( int index, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass value) { if (storageClassUsedSizesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageClassUsedSizesIsMutable(); storageClassUsedSizes_.add(index, value); onChanged(); } else { storageClassUsedSizesBuilder_.addMessage(index, value); } return this; } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public Builder addStorageClassUsedSizes( yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder builderForValue) { if (storageClassUsedSizesBuilder_ == null) { ensureStorageClassUsedSizesIsMutable(); storageClassUsedSizes_.add(builderForValue.build()); onChanged(); } else { storageClassUsedSizesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public Builder addStorageClassUsedSizes( int index, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder builderForValue) { if (storageClassUsedSizesBuilder_ == null) { ensureStorageClassUsedSizesIsMutable(); storageClassUsedSizes_.add(index, builderForValue.build()); onChanged(); } else { storageClassUsedSizesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public Builder addAllStorageClassUsedSizes( java.lang.Iterable values) { if (storageClassUsedSizesBuilder_ == null) { ensureStorageClassUsedSizesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, storageClassUsedSizes_); onChanged(); } else { storageClassUsedSizesBuilder_.addAllMessages(values); } return this; } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public Builder clearStorageClassUsedSizes() { if (storageClassUsedSizesBuilder_ == null) { storageClassUsedSizes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { storageClassUsedSizesBuilder_.clear(); } return this; } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public Builder removeStorageClassUsedSizes(int index) { if (storageClassUsedSizesBuilder_ == null) { ensureStorageClassUsedSizesIsMutable(); storageClassUsedSizes_.remove(index); onChanged(); } else { storageClassUsedSizesBuilder_.remove(index); } return this; } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder getStorageClassUsedSizesBuilder( int index) { return getStorageClassUsedSizesFieldBuilder().getBuilder(index); } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClassOrBuilder getStorageClassUsedSizesOrBuilder( int index) { if (storageClassUsedSizesBuilder_ == null) { return storageClassUsedSizes_.get(index); } else { return storageClassUsedSizesBuilder_.getMessageOrBuilder(index); } } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public java.util.List getStorageClassUsedSizesOrBuilderList() { if (storageClassUsedSizesBuilder_ != null) { return storageClassUsedSizesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(storageClassUsedSizes_); } } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder addStorageClassUsedSizesBuilder() { return getStorageClassUsedSizesFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.getDefaultInstance()); } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder addStorageClassUsedSizesBuilder( int index) { return getStorageClassUsedSizesFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.getDefaultInstance()); } /** *
       * Size of used space in the bucket by storage class, in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.SizeByClass storage_class_used_sizes = 5; */ public java.util.List getStorageClassUsedSizesBuilderList() { return getStorageClassUsedSizesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClassOrBuilder> getStorageClassUsedSizesFieldBuilder() { if (storageClassUsedSizesBuilder_ == null) { storageClassUsedSizesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClass.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.SizeByClassOrBuilder>( storageClassUsedSizes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); storageClassUsedSizes_ = null; } return storageClassUsedSizesBuilder_; } private java.util.List storageClassCounters_ = java.util.Collections.emptyList(); private void ensureStorageClassCountersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { storageClassCounters_ = new java.util.ArrayList(storageClassCounters_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClassOrBuilder> storageClassCountersBuilder_; /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public java.util.List getStorageClassCountersList() { if (storageClassCountersBuilder_ == null) { return java.util.Collections.unmodifiableList(storageClassCounters_); } else { return storageClassCountersBuilder_.getMessageList(); } } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public int getStorageClassCountersCount() { if (storageClassCountersBuilder_ == null) { return storageClassCounters_.size(); } else { return storageClassCountersBuilder_.getCount(); } } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass getStorageClassCounters(int index) { if (storageClassCountersBuilder_ == null) { return storageClassCounters_.get(index); } else { return storageClassCountersBuilder_.getMessage(index); } } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public Builder setStorageClassCounters( int index, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass value) { if (storageClassCountersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageClassCountersIsMutable(); storageClassCounters_.set(index, value); onChanged(); } else { storageClassCountersBuilder_.setMessage(index, value); } return this; } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public Builder setStorageClassCounters( int index, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder builderForValue) { if (storageClassCountersBuilder_ == null) { ensureStorageClassCountersIsMutable(); storageClassCounters_.set(index, builderForValue.build()); onChanged(); } else { storageClassCountersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public Builder addStorageClassCounters(yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass value) { if (storageClassCountersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageClassCountersIsMutable(); storageClassCounters_.add(value); onChanged(); } else { storageClassCountersBuilder_.addMessage(value); } return this; } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public Builder addStorageClassCounters( int index, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass value) { if (storageClassCountersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageClassCountersIsMutable(); storageClassCounters_.add(index, value); onChanged(); } else { storageClassCountersBuilder_.addMessage(index, value); } return this; } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public Builder addStorageClassCounters( yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder builderForValue) { if (storageClassCountersBuilder_ == null) { ensureStorageClassCountersIsMutable(); storageClassCounters_.add(builderForValue.build()); onChanged(); } else { storageClassCountersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public Builder addStorageClassCounters( int index, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder builderForValue) { if (storageClassCountersBuilder_ == null) { ensureStorageClassCountersIsMutable(); storageClassCounters_.add(index, builderForValue.build()); onChanged(); } else { storageClassCountersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public Builder addAllStorageClassCounters( java.lang.Iterable values) { if (storageClassCountersBuilder_ == null) { ensureStorageClassCountersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, storageClassCounters_); onChanged(); } else { storageClassCountersBuilder_.addAllMessages(values); } return this; } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public Builder clearStorageClassCounters() { if (storageClassCountersBuilder_ == null) { storageClassCounters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { storageClassCountersBuilder_.clear(); } return this; } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public Builder removeStorageClassCounters(int index) { if (storageClassCountersBuilder_ == null) { ensureStorageClassCountersIsMutable(); storageClassCounters_.remove(index); onChanged(); } else { storageClassCountersBuilder_.remove(index); } return this; } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder getStorageClassCountersBuilder( int index) { return getStorageClassCountersFieldBuilder().getBuilder(index); } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClassOrBuilder getStorageClassCountersOrBuilder( int index) { if (storageClassCountersBuilder_ == null) { return storageClassCounters_.get(index); } else { return storageClassCountersBuilder_.getMessageOrBuilder(index); } } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public java.util.List getStorageClassCountersOrBuilderList() { if (storageClassCountersBuilder_ != null) { return storageClassCountersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(storageClassCounters_); } } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder addStorageClassCountersBuilder() { return getStorageClassCountersFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.getDefaultInstance()); } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder addStorageClassCountersBuilder( int index) { return getStorageClassCountersFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.getDefaultInstance()); } /** *
       * Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
       * 
* * repeated .yandex.cloud.storage.v1.CountersByClass storage_class_counters = 6; */ public java.util.List getStorageClassCountersBuilderList() { return getStorageClassCountersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClassOrBuilder> getStorageClassCountersFieldBuilder() { if (storageClassCountersBuilder_ == null) { storageClassCountersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClass.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.CountersByClassOrBuilder>( storageClassCounters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); storageClassCounters_ = null; } return storageClassCountersBuilder_; } private com.google.protobuf.StringValue defaultStorageClass_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> defaultStorageClassBuilder_; /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * .google.protobuf.StringValue default_storage_class = 7; * @return Whether the defaultStorageClass field is set. */ public boolean hasDefaultStorageClass() { return defaultStorageClassBuilder_ != null || defaultStorageClass_ != null; } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * .google.protobuf.StringValue default_storage_class = 7; * @return The defaultStorageClass. */ public com.google.protobuf.StringValue getDefaultStorageClass() { if (defaultStorageClassBuilder_ == null) { return defaultStorageClass_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : defaultStorageClass_; } else { return defaultStorageClassBuilder_.getMessage(); } } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * .google.protobuf.StringValue default_storage_class = 7; */ public Builder setDefaultStorageClass(com.google.protobuf.StringValue value) { if (defaultStorageClassBuilder_ == null) { if (value == null) { throw new NullPointerException(); } defaultStorageClass_ = value; onChanged(); } else { defaultStorageClassBuilder_.setMessage(value); } return this; } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * .google.protobuf.StringValue default_storage_class = 7; */ public Builder setDefaultStorageClass( com.google.protobuf.StringValue.Builder builderForValue) { if (defaultStorageClassBuilder_ == null) { defaultStorageClass_ = builderForValue.build(); onChanged(); } else { defaultStorageClassBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * .google.protobuf.StringValue default_storage_class = 7; */ public Builder mergeDefaultStorageClass(com.google.protobuf.StringValue value) { if (defaultStorageClassBuilder_ == null) { if (defaultStorageClass_ != null) { defaultStorageClass_ = com.google.protobuf.StringValue.newBuilder(defaultStorageClass_).mergeFrom(value).buildPartial(); } else { defaultStorageClass_ = value; } onChanged(); } else { defaultStorageClassBuilder_.mergeFrom(value); } return this; } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * .google.protobuf.StringValue default_storage_class = 7; */ public Builder clearDefaultStorageClass() { if (defaultStorageClassBuilder_ == null) { defaultStorageClass_ = null; onChanged(); } else { defaultStorageClass_ = null; defaultStorageClassBuilder_ = null; } return this; } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * .google.protobuf.StringValue default_storage_class = 7; */ public com.google.protobuf.StringValue.Builder getDefaultStorageClassBuilder() { onChanged(); return getDefaultStorageClassFieldBuilder().getBuilder(); } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * .google.protobuf.StringValue default_storage_class = 7; */ public com.google.protobuf.StringValueOrBuilder getDefaultStorageClassOrBuilder() { if (defaultStorageClassBuilder_ != null) { return defaultStorageClassBuilder_.getMessageOrBuilder(); } else { return defaultStorageClass_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : defaultStorageClass_; } } /** *
       * Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
       * (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
       * For details, see [documentation](/docs/storage/concepts/storage-class).
       * 
* * .google.protobuf.StringValue default_storage_class = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getDefaultStorageClassFieldBuilder() { if (defaultStorageClassBuilder_ == null) { defaultStorageClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getDefaultStorageClass(), getParentForChildren(), isClean()); defaultStorageClass_ = null; } return defaultStorageClassBuilder_; } private yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags anonymousAccessFlags_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder> anonymousAccessFlagsBuilder_; /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; * @return Whether the anonymousAccessFlags field is set. */ public boolean hasAnonymousAccessFlags() { return anonymousAccessFlagsBuilder_ != null || anonymousAccessFlags_ != null; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; * @return The anonymousAccessFlags. */ public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags getAnonymousAccessFlags() { if (anonymousAccessFlagsBuilder_ == null) { return anonymousAccessFlags_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.getDefaultInstance() : anonymousAccessFlags_; } else { return anonymousAccessFlagsBuilder_.getMessage(); } } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; */ public Builder setAnonymousAccessFlags(yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags value) { if (anonymousAccessFlagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } anonymousAccessFlags_ = value; onChanged(); } else { anonymousAccessFlagsBuilder_.setMessage(value); } return this; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; */ public Builder setAnonymousAccessFlags( yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder builderForValue) { if (anonymousAccessFlagsBuilder_ == null) { anonymousAccessFlags_ = builderForValue.build(); onChanged(); } else { anonymousAccessFlagsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; */ public Builder mergeAnonymousAccessFlags(yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags value) { if (anonymousAccessFlagsBuilder_ == null) { if (anonymousAccessFlags_ != null) { anonymousAccessFlags_ = yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.newBuilder(anonymousAccessFlags_).mergeFrom(value).buildPartial(); } else { anonymousAccessFlags_ = value; } onChanged(); } else { anonymousAccessFlagsBuilder_.mergeFrom(value); } return this; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; */ public Builder clearAnonymousAccessFlags() { if (anonymousAccessFlagsBuilder_ == null) { anonymousAccessFlags_ = null; onChanged(); } else { anonymousAccessFlags_ = null; anonymousAccessFlagsBuilder_ = null; } return this; } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; */ public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder getAnonymousAccessFlagsBuilder() { onChanged(); return getAnonymousAccessFlagsFieldBuilder().getBuilder(); } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; */ public yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder getAnonymousAccessFlagsOrBuilder() { if (anonymousAccessFlagsBuilder_ != null) { return anonymousAccessFlagsBuilder_.getMessageOrBuilder(); } else { return anonymousAccessFlags_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.getDefaultInstance() : anonymousAccessFlags_; } } /** *
       * Flags for configuring public (anonymous) access to the bucket's content and settings.
       * For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
       * 
* * .yandex.cloud.storage.v1.AnonymousAccessFlags anonymous_access_flags = 8; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder> getAnonymousAccessFlagsFieldBuilder() { if (anonymousAccessFlagsBuilder_ == null) { anonymousAccessFlagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlags.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.AnonymousAccessFlagsOrBuilder>( getAnonymousAccessFlags(), getParentForChildren(), isClean()); anonymousAccessFlags_ = null; } return anonymousAccessFlagsBuilder_; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Bucket creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 9; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Bucket creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 9; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Bucket creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 9; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Bucket creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 9; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Bucket creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 9; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Bucket creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 9; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Bucket creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 9; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Bucket creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 9; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Bucket creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp updatedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; /** *
       * Bucket latest update timestamp.
       * 
* * .google.protobuf.Timestamp updated_at = 10; * @return Whether the updatedAt field is set. */ public boolean hasUpdatedAt() { return updatedAtBuilder_ != null || updatedAt_ != null; } /** *
       * Bucket latest update timestamp.
       * 
* * .google.protobuf.Timestamp updated_at = 10; * @return The updatedAt. */ public com.google.protobuf.Timestamp getUpdatedAt() { if (updatedAtBuilder_ == null) { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } else { return updatedAtBuilder_.getMessage(); } } /** *
       * Bucket latest update timestamp.
       * 
* * .google.protobuf.Timestamp updated_at = 10; */ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updatedAt_ = value; onChanged(); } else { updatedAtBuilder_.setMessage(value); } return this; } /** *
       * Bucket latest update timestamp.
       * 
* * .google.protobuf.Timestamp updated_at = 10; */ public Builder setUpdatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (updatedAtBuilder_ == null) { updatedAt_ = builderForValue.build(); onChanged(); } else { updatedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Bucket latest update timestamp.
       * 
* * .google.protobuf.Timestamp updated_at = 10; */ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (updatedAt_ != null) { updatedAt_ = com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); } else { updatedAt_ = value; } onChanged(); } else { updatedAtBuilder_.mergeFrom(value); } return this; } /** *
       * Bucket latest update timestamp.
       * 
* * .google.protobuf.Timestamp updated_at = 10; */ public Builder clearUpdatedAt() { if (updatedAtBuilder_ == null) { updatedAt_ = null; onChanged(); } else { updatedAt_ = null; updatedAtBuilder_ = null; } return this; } /** *
       * Bucket latest update timestamp.
       * 
* * .google.protobuf.Timestamp updated_at = 10; */ public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { onChanged(); return getUpdatedAtFieldBuilder().getBuilder(); } /** *
       * Bucket latest update timestamp.
       * 
* * .google.protobuf.Timestamp updated_at = 10; */ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { if (updatedAtBuilder_ != null) { return updatedAtBuilder_.getMessageOrBuilder(); } else { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } } /** *
       * Bucket latest update timestamp.
       * 
* * .google.protobuf.Timestamp updated_at = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdatedAtFieldBuilder() { if (updatedAtBuilder_ == null) { updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdatedAt(), getParentForChildren(), isClean()); updatedAt_ = null; } return updatedAtBuilder_; } @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.storage.v1.BucketStats) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.BucketStats) private static final yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.BucketStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BucketStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BucketStats(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.storage.v1.BucketOuterClass.BucketStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HTTPSConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.HTTPSConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the bucket.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the bucket.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Type of TLS certificate source.
     * 
* * .yandex.cloud.storage.v1.HTTPSConfig.SourceType source_type = 2; * @return The enum numeric value on the wire for sourceType. */ int getSourceTypeValue(); /** *
     * Type of TLS certificate source.
     * 
* * .yandex.cloud.storage.v1.HTTPSConfig.SourceType source_type = 2; * @return The sourceType. */ yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType getSourceType(); /** *
     * Issuer of the TLS certificate.
     * 
* * .google.protobuf.StringValue issuer = 3; * @return Whether the issuer field is set. */ boolean hasIssuer(); /** *
     * Issuer of the TLS certificate.
     * 
* * .google.protobuf.StringValue issuer = 3; * @return The issuer. */ com.google.protobuf.StringValue getIssuer(); /** *
     * Issuer of the TLS certificate.
     * 
* * .google.protobuf.StringValue issuer = 3; */ com.google.protobuf.StringValueOrBuilder getIssuerOrBuilder(); /** *
     * Subject of the TLS certificate.
     * 
* * .google.protobuf.StringValue subject = 4; * @return Whether the subject field is set. */ boolean hasSubject(); /** *
     * Subject of the TLS certificate.
     * 
* * .google.protobuf.StringValue subject = 4; * @return The subject. */ com.google.protobuf.StringValue getSubject(); /** *
     * Subject of the TLS certificate.
     * 
* * .google.protobuf.StringValue subject = 4; */ com.google.protobuf.StringValueOrBuilder getSubjectOrBuilder(); /** *
     * List of DNS names of the TLS certificate (Subject Alternative Name field).
     * 
* * repeated string dns_names = 5; * @return A list containing the dnsNames. */ java.util.List getDnsNamesList(); /** *
     * List of DNS names of the TLS certificate (Subject Alternative Name field).
     * 
* * repeated string dns_names = 5; * @return The count of dnsNames. */ int getDnsNamesCount(); /** *
     * List of DNS names of the TLS certificate (Subject Alternative Name field).
     * 
* * repeated string dns_names = 5; * @param index The index of the element to return. * @return The dnsNames at the given index. */ java.lang.String getDnsNames(int index); /** *
     * List of DNS names of the TLS certificate (Subject Alternative Name field).
     * 
* * repeated string dns_names = 5; * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ com.google.protobuf.ByteString getDnsNamesBytes(int index); /** *
     * Start of the TLS certificate validity period (Not Before field).
     * 
* * .google.protobuf.Timestamp not_before = 6; * @return Whether the notBefore field is set. */ boolean hasNotBefore(); /** *
     * Start of the TLS certificate validity period (Not Before field).
     * 
* * .google.protobuf.Timestamp not_before = 6; * @return The notBefore. */ com.google.protobuf.Timestamp getNotBefore(); /** *
     * Start of the TLS certificate validity period (Not Before field).
     * 
* * .google.protobuf.Timestamp not_before = 6; */ com.google.protobuf.TimestampOrBuilder getNotBeforeOrBuilder(); /** *
     * End of the TLS certificate validity period (Not After field)
     * 
* * .google.protobuf.Timestamp not_after = 7; * @return Whether the notAfter field is set. */ boolean hasNotAfter(); /** *
     * End of the TLS certificate validity period (Not After field)
     * 
* * .google.protobuf.Timestamp not_after = 7; * @return The notAfter. */ com.google.protobuf.Timestamp getNotAfter(); /** *
     * End of the TLS certificate validity period (Not After field)
     * 
* * .google.protobuf.Timestamp not_after = 7; */ com.google.protobuf.TimestampOrBuilder getNotAfterOrBuilder(); /** *
     * ID of the TLS certificate in Certificate Manager.
     * To get information about the certificate from Certificate Manager, make a
     * [yandex.cloud.certificatemanager.v1.CertificateService.Get] request.
     * 
* * string certificate_id = 8; * @return The certificateId. */ java.lang.String getCertificateId(); /** *
     * ID of the TLS certificate in Certificate Manager.
     * To get information about the certificate from Certificate Manager, make a
     * [yandex.cloud.certificatemanager.v1.CertificateService.Get] request.
     * 
* * string certificate_id = 8; * @return The bytes for certificateId. */ com.google.protobuf.ByteString getCertificateIdBytes(); } /** *
   * A resource for HTTPS configuration of a bucket.
   * 
* * Protobuf type {@code yandex.cloud.storage.v1.HTTPSConfig} */ public static final class HTTPSConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.HTTPSConfig) HTTPSConfigOrBuilder { private static final long serialVersionUID = 0L; // Use HTTPSConfig.newBuilder() to construct. private HTTPSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HTTPSConfig() { name_ = ""; sourceType_ = 0; dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; certificateId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HTTPSConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HTTPSConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 16: { int rawValue = input.readEnum(); sourceType_ = rawValue; break; } case 26: { com.google.protobuf.StringValue.Builder subBuilder = null; if (issuer_ != null) { subBuilder = issuer_.toBuilder(); } issuer_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(issuer_); issuer_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.StringValue.Builder subBuilder = null; if (subject_ != null) { subBuilder = subject_.toBuilder(); } subject_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(subject_); subject_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { dnsNames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } dnsNames_.add(s); break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (notBefore_ != null) { subBuilder = notBefore_.toBuilder(); } notBefore_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notBefore_); notBefore_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (notAfter_ != null) { subBuilder = notAfter_.toBuilder(); } notAfter_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notAfter_); notAfter_ = subBuilder.buildPartial(); } break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); certificateId_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { dnsNames_ = dnsNames_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_HTTPSConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_HTTPSConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.class, yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.Builder.class); } /** *
     * A resource for type of TLS certificate source.
     * 
* * Protobuf enum {@code yandex.cloud.storage.v1.HTTPSConfig.SourceType} */ public enum SourceType implements com.google.protobuf.ProtocolMessageEnum { /** * SOURCE_TYPE_UNSPECIFIED = 0; */ SOURCE_TYPE_UNSPECIFIED(0), /** *
       * Your certificate, uploaded directly.
       * 
* * SOURCE_TYPE_SELF_MANAGED = 1; */ SOURCE_TYPE_SELF_MANAGED(1), /** *
       * Certificate managed by Certificate Manager.
       * 
* * SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER = 2; */ SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER(2), UNRECOGNIZED(-1), ; /** * SOURCE_TYPE_UNSPECIFIED = 0; */ public static final int SOURCE_TYPE_UNSPECIFIED_VALUE = 0; /** *
       * Your certificate, uploaded directly.
       * 
* * SOURCE_TYPE_SELF_MANAGED = 1; */ public static final int SOURCE_TYPE_SELF_MANAGED_VALUE = 1; /** *
       * Certificate managed by Certificate Manager.
       * 
* * SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER = 2; */ public static final int SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SourceType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static SourceType forNumber(int value) { switch (value) { case 0: return SOURCE_TYPE_UNSPECIFIED; case 1: return SOURCE_TYPE_SELF_MANAGED; case 2: return SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SourceType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SourceType findValueByNumber(int number) { return SourceType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.getDescriptor().getEnumTypes().get(0); } private static final SourceType[] VALUES = values(); public static SourceType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SourceType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.storage.v1.HTTPSConfig.SourceType) } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the bucket.
     * 
* * 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 bucket.
     * 
* * 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; } } public static final int SOURCE_TYPE_FIELD_NUMBER = 2; private int sourceType_; /** *
     * Type of TLS certificate source.
     * 
* * .yandex.cloud.storage.v1.HTTPSConfig.SourceType source_type = 2; * @return The enum numeric value on the wire for sourceType. */ @java.lang.Override public int getSourceTypeValue() { return sourceType_; } /** *
     * Type of TLS certificate source.
     * 
* * .yandex.cloud.storage.v1.HTTPSConfig.SourceType source_type = 2; * @return The sourceType. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType getSourceType() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType result = yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType.valueOf(sourceType_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType.UNRECOGNIZED : result; } public static final int ISSUER_FIELD_NUMBER = 3; private com.google.protobuf.StringValue issuer_; /** *
     * Issuer of the TLS certificate.
     * 
* * .google.protobuf.StringValue issuer = 3; * @return Whether the issuer field is set. */ @java.lang.Override public boolean hasIssuer() { return issuer_ != null; } /** *
     * Issuer of the TLS certificate.
     * 
* * .google.protobuf.StringValue issuer = 3; * @return The issuer. */ @java.lang.Override public com.google.protobuf.StringValue getIssuer() { return issuer_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : issuer_; } /** *
     * Issuer of the TLS certificate.
     * 
* * .google.protobuf.StringValue issuer = 3; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getIssuerOrBuilder() { return getIssuer(); } public static final int SUBJECT_FIELD_NUMBER = 4; private com.google.protobuf.StringValue subject_; /** *
     * Subject of the TLS certificate.
     * 
* * .google.protobuf.StringValue subject = 4; * @return Whether the subject field is set. */ @java.lang.Override public boolean hasSubject() { return subject_ != null; } /** *
     * Subject of the TLS certificate.
     * 
* * .google.protobuf.StringValue subject = 4; * @return The subject. */ @java.lang.Override public com.google.protobuf.StringValue getSubject() { return subject_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : subject_; } /** *
     * Subject of the TLS certificate.
     * 
* * .google.protobuf.StringValue subject = 4; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getSubjectOrBuilder() { return getSubject(); } public static final int DNS_NAMES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList dnsNames_; /** *
     * List of DNS names of the TLS certificate (Subject Alternative Name field).
     * 
* * repeated string dns_names = 5; * @return A list containing the dnsNames. */ public com.google.protobuf.ProtocolStringList getDnsNamesList() { return dnsNames_; } /** *
     * List of DNS names of the TLS certificate (Subject Alternative Name field).
     * 
* * repeated string dns_names = 5; * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** *
     * List of DNS names of the TLS certificate (Subject Alternative Name field).
     * 
* * repeated string dns_names = 5; * @param index The index of the element to return. * @return The dnsNames at the given index. */ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** *
     * List of DNS names of the TLS certificate (Subject Alternative Name field).
     * 
* * repeated string dns_names = 5; * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ public com.google.protobuf.ByteString getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } public static final int NOT_BEFORE_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp notBefore_; /** *
     * Start of the TLS certificate validity period (Not Before field).
     * 
* * .google.protobuf.Timestamp not_before = 6; * @return Whether the notBefore field is set. */ @java.lang.Override public boolean hasNotBefore() { return notBefore_ != null; } /** *
     * Start of the TLS certificate validity period (Not Before field).
     * 
* * .google.protobuf.Timestamp not_before = 6; * @return The notBefore. */ @java.lang.Override public com.google.protobuf.Timestamp getNotBefore() { return notBefore_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notBefore_; } /** *
     * Start of the TLS certificate validity period (Not Before field).
     * 
* * .google.protobuf.Timestamp not_before = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNotBeforeOrBuilder() { return getNotBefore(); } public static final int NOT_AFTER_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp notAfter_; /** *
     * End of the TLS certificate validity period (Not After field)
     * 
* * .google.protobuf.Timestamp not_after = 7; * @return Whether the notAfter field is set. */ @java.lang.Override public boolean hasNotAfter() { return notAfter_ != null; } /** *
     * End of the TLS certificate validity period (Not After field)
     * 
* * .google.protobuf.Timestamp not_after = 7; * @return The notAfter. */ @java.lang.Override public com.google.protobuf.Timestamp getNotAfter() { return notAfter_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notAfter_; } /** *
     * End of the TLS certificate validity period (Not After field)
     * 
* * .google.protobuf.Timestamp not_after = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNotAfterOrBuilder() { return getNotAfter(); } public static final int CERTIFICATE_ID_FIELD_NUMBER = 8; private volatile java.lang.Object certificateId_; /** *
     * ID of the TLS certificate in Certificate Manager.
     * To get information about the certificate from Certificate Manager, make a
     * [yandex.cloud.certificatemanager.v1.CertificateService.Get] request.
     * 
* * string certificate_id = 8; * @return The certificateId. */ @java.lang.Override public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; 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(); certificateId_ = s; return s; } } /** *
     * ID of the TLS certificate in Certificate Manager.
     * To get information about the certificate from Certificate Manager, make a
     * [yandex.cloud.certificatemanager.v1.CertificateService.Get] request.
     * 
* * string certificate_id = 8; * @return The bytes for certificateId. */ @java.lang.Override public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateId_ = 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_); } if (sourceType_ != yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType.SOURCE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, sourceType_); } if (issuer_ != null) { output.writeMessage(3, getIssuer()); } if (subject_ != null) { output.writeMessage(4, getSubject()); } for (int i = 0; i < dnsNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dnsNames_.getRaw(i)); } if (notBefore_ != null) { output.writeMessage(6, getNotBefore()); } if (notAfter_ != null) { output.writeMessage(7, getNotAfter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, certificateId_); } 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_); } if (sourceType_ != yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType.SOURCE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, sourceType_); } if (issuer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getIssuer()); } if (subject_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSubject()); } { int dataSize = 0; for (int i = 0; i < dnsNames_.size(); i++) { dataSize += computeStringSizeNoTag(dnsNames_.getRaw(i)); } size += dataSize; size += 1 * getDnsNamesList().size(); } if (notBefore_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getNotBefore()); } if (notAfter_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getNotAfter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, certificateId_); } 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.storage.v1.BucketOuterClass.HTTPSConfig)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig other = (yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig) obj; if (!getName() .equals(other.getName())) return false; if (sourceType_ != other.sourceType_) return false; if (hasIssuer() != other.hasIssuer()) return false; if (hasIssuer()) { if (!getIssuer() .equals(other.getIssuer())) return false; } if (hasSubject() != other.hasSubject()) return false; if (hasSubject()) { if (!getSubject() .equals(other.getSubject())) return false; } if (!getDnsNamesList() .equals(other.getDnsNamesList())) return false; if (hasNotBefore() != other.hasNotBefore()) return false; if (hasNotBefore()) { if (!getNotBefore() .equals(other.getNotBefore())) return false; } if (hasNotAfter() != other.hasNotAfter()) return false; if (hasNotAfter()) { if (!getNotAfter() .equals(other.getNotAfter())) return false; } if (!getCertificateId() .equals(other.getCertificateId())) 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 = (37 * hash) + SOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + sourceType_; if (hasIssuer()) { hash = (37 * hash) + ISSUER_FIELD_NUMBER; hash = (53 * hash) + getIssuer().hashCode(); } if (hasSubject()) { hash = (37 * hash) + SUBJECT_FIELD_NUMBER; hash = (53 * hash) + getSubject().hashCode(); } if (getDnsNamesCount() > 0) { hash = (37 * hash) + DNS_NAMES_FIELD_NUMBER; hash = (53 * hash) + getDnsNamesList().hashCode(); } if (hasNotBefore()) { hash = (37 * hash) + NOT_BEFORE_FIELD_NUMBER; hash = (53 * hash) + getNotBefore().hashCode(); } if (hasNotAfter()) { hash = (37 * hash) + NOT_AFTER_FIELD_NUMBER; hash = (53 * hash) + getNotAfter().hashCode(); } hash = (37 * hash) + CERTIFICATE_ID_FIELD_NUMBER; hash = (53 * hash) + getCertificateId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig 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.storage.v1.BucketOuterClass.HTTPSConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig 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.storage.v1.BucketOuterClass.HTTPSConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig 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.storage.v1.BucketOuterClass.HTTPSConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig 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.storage.v1.BucketOuterClass.HTTPSConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig 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.storage.v1.BucketOuterClass.HTTPSConfig 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; } /** *
     * A resource for HTTPS configuration of a bucket.
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.HTTPSConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.HTTPSConfig) yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_HTTPSConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_HTTPSConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.class, yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.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_ = ""; sourceType_ = 0; if (issuerBuilder_ == null) { issuer_ = null; } else { issuer_ = null; issuerBuilder_ = null; } if (subjectBuilder_ == null) { subject_ = null; } else { subject_ = null; subjectBuilder_ = null; } dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (notBeforeBuilder_ == null) { notBefore_ = null; } else { notBefore_ = null; notBeforeBuilder_ = null; } if (notAfterBuilder_ == null) { notAfter_ = null; } else { notAfter_ = null; notAfterBuilder_ = null; } certificateId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_HTTPSConfig_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig build() { yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig result = new yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.sourceType_ = sourceType_; if (issuerBuilder_ == null) { result.issuer_ = issuer_; } else { result.issuer_ = issuerBuilder_.build(); } if (subjectBuilder_ == null) { result.subject_ = subject_; } else { result.subject_ = subjectBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { dnsNames_ = dnsNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.dnsNames_ = dnsNames_; if (notBeforeBuilder_ == null) { result.notBefore_ = notBefore_; } else { result.notBefore_ = notBeforeBuilder_.build(); } if (notAfterBuilder_ == null) { result.notAfter_ = notAfter_; } else { result.notAfter_ = notAfterBuilder_.build(); } result.certificateId_ = certificateId_; 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.storage.v1.BucketOuterClass.HTTPSConfig) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.sourceType_ != 0) { setSourceTypeValue(other.getSourceTypeValue()); } if (other.hasIssuer()) { mergeIssuer(other.getIssuer()); } if (other.hasSubject()) { mergeSubject(other.getSubject()); } if (!other.dnsNames_.isEmpty()) { if (dnsNames_.isEmpty()) { dnsNames_ = other.dnsNames_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDnsNamesIsMutable(); dnsNames_.addAll(other.dnsNames_); } onChanged(); } if (other.hasNotBefore()) { mergeNotBefore(other.getNotBefore()); } if (other.hasNotAfter()) { mergeNotAfter(other.getNotAfter()); } if (!other.getCertificateId().isEmpty()) { certificateId_ = other.certificateId_; 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.storage.v1.BucketOuterClass.HTTPSConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Name of the bucket.
       * 
* * 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 bucket.
       * 
* * 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 bucket.
       * 
* * 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 bucket.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the bucket.
       * 
* * 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; } private int sourceType_ = 0; /** *
       * Type of TLS certificate source.
       * 
* * .yandex.cloud.storage.v1.HTTPSConfig.SourceType source_type = 2; * @return The enum numeric value on the wire for sourceType. */ @java.lang.Override public int getSourceTypeValue() { return sourceType_; } /** *
       * Type of TLS certificate source.
       * 
* * .yandex.cloud.storage.v1.HTTPSConfig.SourceType source_type = 2; * @param value The enum numeric value on the wire for sourceType to set. * @return This builder for chaining. */ public Builder setSourceTypeValue(int value) { sourceType_ = value; onChanged(); return this; } /** *
       * Type of TLS certificate source.
       * 
* * .yandex.cloud.storage.v1.HTTPSConfig.SourceType source_type = 2; * @return The sourceType. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType getSourceType() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType result = yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType.valueOf(sourceType_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType.UNRECOGNIZED : result; } /** *
       * Type of TLS certificate source.
       * 
* * .yandex.cloud.storage.v1.HTTPSConfig.SourceType source_type = 2; * @param value The sourceType to set. * @return This builder for chaining. */ public Builder setSourceType(yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig.SourceType value) { if (value == null) { throw new NullPointerException(); } sourceType_ = value.getNumber(); onChanged(); return this; } /** *
       * Type of TLS certificate source.
       * 
* * .yandex.cloud.storage.v1.HTTPSConfig.SourceType source_type = 2; * @return This builder for chaining. */ public Builder clearSourceType() { sourceType_ = 0; onChanged(); return this; } private com.google.protobuf.StringValue issuer_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> issuerBuilder_; /** *
       * Issuer of the TLS certificate.
       * 
* * .google.protobuf.StringValue issuer = 3; * @return Whether the issuer field is set. */ public boolean hasIssuer() { return issuerBuilder_ != null || issuer_ != null; } /** *
       * Issuer of the TLS certificate.
       * 
* * .google.protobuf.StringValue issuer = 3; * @return The issuer. */ public com.google.protobuf.StringValue getIssuer() { if (issuerBuilder_ == null) { return issuer_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : issuer_; } else { return issuerBuilder_.getMessage(); } } /** *
       * Issuer of the TLS certificate.
       * 
* * .google.protobuf.StringValue issuer = 3; */ public Builder setIssuer(com.google.protobuf.StringValue value) { if (issuerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } issuer_ = value; onChanged(); } else { issuerBuilder_.setMessage(value); } return this; } /** *
       * Issuer of the TLS certificate.
       * 
* * .google.protobuf.StringValue issuer = 3; */ public Builder setIssuer( com.google.protobuf.StringValue.Builder builderForValue) { if (issuerBuilder_ == null) { issuer_ = builderForValue.build(); onChanged(); } else { issuerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Issuer of the TLS certificate.
       * 
* * .google.protobuf.StringValue issuer = 3; */ public Builder mergeIssuer(com.google.protobuf.StringValue value) { if (issuerBuilder_ == null) { if (issuer_ != null) { issuer_ = com.google.protobuf.StringValue.newBuilder(issuer_).mergeFrom(value).buildPartial(); } else { issuer_ = value; } onChanged(); } else { issuerBuilder_.mergeFrom(value); } return this; } /** *
       * Issuer of the TLS certificate.
       * 
* * .google.protobuf.StringValue issuer = 3; */ public Builder clearIssuer() { if (issuerBuilder_ == null) { issuer_ = null; onChanged(); } else { issuer_ = null; issuerBuilder_ = null; } return this; } /** *
       * Issuer of the TLS certificate.
       * 
* * .google.protobuf.StringValue issuer = 3; */ public com.google.protobuf.StringValue.Builder getIssuerBuilder() { onChanged(); return getIssuerFieldBuilder().getBuilder(); } /** *
       * Issuer of the TLS certificate.
       * 
* * .google.protobuf.StringValue issuer = 3; */ public com.google.protobuf.StringValueOrBuilder getIssuerOrBuilder() { if (issuerBuilder_ != null) { return issuerBuilder_.getMessageOrBuilder(); } else { return issuer_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : issuer_; } } /** *
       * Issuer of the TLS certificate.
       * 
* * .google.protobuf.StringValue issuer = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getIssuerFieldBuilder() { if (issuerBuilder_ == null) { issuerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getIssuer(), getParentForChildren(), isClean()); issuer_ = null; } return issuerBuilder_; } private com.google.protobuf.StringValue subject_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> subjectBuilder_; /** *
       * Subject of the TLS certificate.
       * 
* * .google.protobuf.StringValue subject = 4; * @return Whether the subject field is set. */ public boolean hasSubject() { return subjectBuilder_ != null || subject_ != null; } /** *
       * Subject of the TLS certificate.
       * 
* * .google.protobuf.StringValue subject = 4; * @return The subject. */ public com.google.protobuf.StringValue getSubject() { if (subjectBuilder_ == null) { return subject_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : subject_; } else { return subjectBuilder_.getMessage(); } } /** *
       * Subject of the TLS certificate.
       * 
* * .google.protobuf.StringValue subject = 4; */ public Builder setSubject(com.google.protobuf.StringValue value) { if (subjectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subject_ = value; onChanged(); } else { subjectBuilder_.setMessage(value); } return this; } /** *
       * Subject of the TLS certificate.
       * 
* * .google.protobuf.StringValue subject = 4; */ public Builder setSubject( com.google.protobuf.StringValue.Builder builderForValue) { if (subjectBuilder_ == null) { subject_ = builderForValue.build(); onChanged(); } else { subjectBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Subject of the TLS certificate.
       * 
* * .google.protobuf.StringValue subject = 4; */ public Builder mergeSubject(com.google.protobuf.StringValue value) { if (subjectBuilder_ == null) { if (subject_ != null) { subject_ = com.google.protobuf.StringValue.newBuilder(subject_).mergeFrom(value).buildPartial(); } else { subject_ = value; } onChanged(); } else { subjectBuilder_.mergeFrom(value); } return this; } /** *
       * Subject of the TLS certificate.
       * 
* * .google.protobuf.StringValue subject = 4; */ public Builder clearSubject() { if (subjectBuilder_ == null) { subject_ = null; onChanged(); } else { subject_ = null; subjectBuilder_ = null; } return this; } /** *
       * Subject of the TLS certificate.
       * 
* * .google.protobuf.StringValue subject = 4; */ public com.google.protobuf.StringValue.Builder getSubjectBuilder() { onChanged(); return getSubjectFieldBuilder().getBuilder(); } /** *
       * Subject of the TLS certificate.
       * 
* * .google.protobuf.StringValue subject = 4; */ public com.google.protobuf.StringValueOrBuilder getSubjectOrBuilder() { if (subjectBuilder_ != null) { return subjectBuilder_.getMessageOrBuilder(); } else { return subject_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : subject_; } } /** *
       * Subject of the TLS certificate.
       * 
* * .google.protobuf.StringValue subject = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getSubjectFieldBuilder() { if (subjectBuilder_ == null) { subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getSubject(), getParentForChildren(), isClean()); subject_ = null; } return subjectBuilder_; } private com.google.protobuf.LazyStringList dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDnsNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dnsNames_ = new com.google.protobuf.LazyStringArrayList(dnsNames_); bitField0_ |= 0x00000001; } } /** *
       * List of DNS names of the TLS certificate (Subject Alternative Name field).
       * 
* * repeated string dns_names = 5; * @return A list containing the dnsNames. */ public com.google.protobuf.ProtocolStringList getDnsNamesList() { return dnsNames_.getUnmodifiableView(); } /** *
       * List of DNS names of the TLS certificate (Subject Alternative Name field).
       * 
* * repeated string dns_names = 5; * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** *
       * List of DNS names of the TLS certificate (Subject Alternative Name field).
       * 
* * repeated string dns_names = 5; * @param index The index of the element to return. * @return The dnsNames at the given index. */ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** *
       * List of DNS names of the TLS certificate (Subject Alternative Name field).
       * 
* * repeated string dns_names = 5; * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ public com.google.protobuf.ByteString getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } /** *
       * List of DNS names of the TLS certificate (Subject Alternative Name field).
       * 
* * repeated string dns_names = 5; * @param index The index to set the value at. * @param value The dnsNames to set. * @return This builder for chaining. */ public Builder setDnsNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDnsNamesIsMutable(); dnsNames_.set(index, value); onChanged(); return this; } /** *
       * List of DNS names of the TLS certificate (Subject Alternative Name field).
       * 
* * repeated string dns_names = 5; * @param value The dnsNames to add. * @return This builder for chaining. */ public Builder addDnsNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } /** *
       * List of DNS names of the TLS certificate (Subject Alternative Name field).
       * 
* * repeated string dns_names = 5; * @param values The dnsNames to add. * @return This builder for chaining. */ public Builder addAllDnsNames( java.lang.Iterable values) { ensureDnsNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dnsNames_); onChanged(); return this; } /** *
       * List of DNS names of the TLS certificate (Subject Alternative Name field).
       * 
* * repeated string dns_names = 5; * @return This builder for chaining. */ public Builder clearDnsNames() { dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * List of DNS names of the TLS certificate (Subject Alternative Name field).
       * 
* * repeated string dns_names = 5; * @param value The bytes of the dnsNames to add. * @return This builder for chaining. */ public Builder addDnsNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } private com.google.protobuf.Timestamp notBefore_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> notBeforeBuilder_; /** *
       * Start of the TLS certificate validity period (Not Before field).
       * 
* * .google.protobuf.Timestamp not_before = 6; * @return Whether the notBefore field is set. */ public boolean hasNotBefore() { return notBeforeBuilder_ != null || notBefore_ != null; } /** *
       * Start of the TLS certificate validity period (Not Before field).
       * 
* * .google.protobuf.Timestamp not_before = 6; * @return The notBefore. */ public com.google.protobuf.Timestamp getNotBefore() { if (notBeforeBuilder_ == null) { return notBefore_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notBefore_; } else { return notBeforeBuilder_.getMessage(); } } /** *
       * Start of the TLS certificate validity period (Not Before field).
       * 
* * .google.protobuf.Timestamp not_before = 6; */ public Builder setNotBefore(com.google.protobuf.Timestamp value) { if (notBeforeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notBefore_ = value; onChanged(); } else { notBeforeBuilder_.setMessage(value); } return this; } /** *
       * Start of the TLS certificate validity period (Not Before field).
       * 
* * .google.protobuf.Timestamp not_before = 6; */ public Builder setNotBefore( com.google.protobuf.Timestamp.Builder builderForValue) { if (notBeforeBuilder_ == null) { notBefore_ = builderForValue.build(); onChanged(); } else { notBeforeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Start of the TLS certificate validity period (Not Before field).
       * 
* * .google.protobuf.Timestamp not_before = 6; */ public Builder mergeNotBefore(com.google.protobuf.Timestamp value) { if (notBeforeBuilder_ == null) { if (notBefore_ != null) { notBefore_ = com.google.protobuf.Timestamp.newBuilder(notBefore_).mergeFrom(value).buildPartial(); } else { notBefore_ = value; } onChanged(); } else { notBeforeBuilder_.mergeFrom(value); } return this; } /** *
       * Start of the TLS certificate validity period (Not Before field).
       * 
* * .google.protobuf.Timestamp not_before = 6; */ public Builder clearNotBefore() { if (notBeforeBuilder_ == null) { notBefore_ = null; onChanged(); } else { notBefore_ = null; notBeforeBuilder_ = null; } return this; } /** *
       * Start of the TLS certificate validity period (Not Before field).
       * 
* * .google.protobuf.Timestamp not_before = 6; */ public com.google.protobuf.Timestamp.Builder getNotBeforeBuilder() { onChanged(); return getNotBeforeFieldBuilder().getBuilder(); } /** *
       * Start of the TLS certificate validity period (Not Before field).
       * 
* * .google.protobuf.Timestamp not_before = 6; */ public com.google.protobuf.TimestampOrBuilder getNotBeforeOrBuilder() { if (notBeforeBuilder_ != null) { return notBeforeBuilder_.getMessageOrBuilder(); } else { return notBefore_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notBefore_; } } /** *
       * Start of the TLS certificate validity period (Not Before field).
       * 
* * .google.protobuf.Timestamp not_before = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getNotBeforeFieldBuilder() { if (notBeforeBuilder_ == null) { notBeforeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getNotBefore(), getParentForChildren(), isClean()); notBefore_ = null; } return notBeforeBuilder_; } private com.google.protobuf.Timestamp notAfter_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> notAfterBuilder_; /** *
       * End of the TLS certificate validity period (Not After field)
       * 
* * .google.protobuf.Timestamp not_after = 7; * @return Whether the notAfter field is set. */ public boolean hasNotAfter() { return notAfterBuilder_ != null || notAfter_ != null; } /** *
       * End of the TLS certificate validity period (Not After field)
       * 
* * .google.protobuf.Timestamp not_after = 7; * @return The notAfter. */ public com.google.protobuf.Timestamp getNotAfter() { if (notAfterBuilder_ == null) { return notAfter_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notAfter_; } else { return notAfterBuilder_.getMessage(); } } /** *
       * End of the TLS certificate validity period (Not After field)
       * 
* * .google.protobuf.Timestamp not_after = 7; */ public Builder setNotAfter(com.google.protobuf.Timestamp value) { if (notAfterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notAfter_ = value; onChanged(); } else { notAfterBuilder_.setMessage(value); } return this; } /** *
       * End of the TLS certificate validity period (Not After field)
       * 
* * .google.protobuf.Timestamp not_after = 7; */ public Builder setNotAfter( com.google.protobuf.Timestamp.Builder builderForValue) { if (notAfterBuilder_ == null) { notAfter_ = builderForValue.build(); onChanged(); } else { notAfterBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * End of the TLS certificate validity period (Not After field)
       * 
* * .google.protobuf.Timestamp not_after = 7; */ public Builder mergeNotAfter(com.google.protobuf.Timestamp value) { if (notAfterBuilder_ == null) { if (notAfter_ != null) { notAfter_ = com.google.protobuf.Timestamp.newBuilder(notAfter_).mergeFrom(value).buildPartial(); } else { notAfter_ = value; } onChanged(); } else { notAfterBuilder_.mergeFrom(value); } return this; } /** *
       * End of the TLS certificate validity period (Not After field)
       * 
* * .google.protobuf.Timestamp not_after = 7; */ public Builder clearNotAfter() { if (notAfterBuilder_ == null) { notAfter_ = null; onChanged(); } else { notAfter_ = null; notAfterBuilder_ = null; } return this; } /** *
       * End of the TLS certificate validity period (Not After field)
       * 
* * .google.protobuf.Timestamp not_after = 7; */ public com.google.protobuf.Timestamp.Builder getNotAfterBuilder() { onChanged(); return getNotAfterFieldBuilder().getBuilder(); } /** *
       * End of the TLS certificate validity period (Not After field)
       * 
* * .google.protobuf.Timestamp not_after = 7; */ public com.google.protobuf.TimestampOrBuilder getNotAfterOrBuilder() { if (notAfterBuilder_ != null) { return notAfterBuilder_.getMessageOrBuilder(); } else { return notAfter_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notAfter_; } } /** *
       * End of the TLS certificate validity period (Not After field)
       * 
* * .google.protobuf.Timestamp not_after = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getNotAfterFieldBuilder() { if (notAfterBuilder_ == null) { notAfterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getNotAfter(), getParentForChildren(), isClean()); notAfter_ = null; } return notAfterBuilder_; } private java.lang.Object certificateId_ = ""; /** *
       * ID of the TLS certificate in Certificate Manager.
       * To get information about the certificate from Certificate Manager, make a
       * [yandex.cloud.certificatemanager.v1.CertificateService.Get] request.
       * 
* * string certificate_id = 8; * @return The certificateId. */ public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the TLS certificate in Certificate Manager.
       * To get information about the certificate from Certificate Manager, make a
       * [yandex.cloud.certificatemanager.v1.CertificateService.Get] request.
       * 
* * string certificate_id = 8; * @return The bytes for certificateId. */ public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the TLS certificate in Certificate Manager.
       * To get information about the certificate from Certificate Manager, make a
       * [yandex.cloud.certificatemanager.v1.CertificateService.Get] request.
       * 
* * string certificate_id = 8; * @param value The certificateId to set. * @return This builder for chaining. */ public Builder setCertificateId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } certificateId_ = value; onChanged(); return this; } /** *
       * ID of the TLS certificate in Certificate Manager.
       * To get information about the certificate from Certificate Manager, make a
       * [yandex.cloud.certificatemanager.v1.CertificateService.Get] request.
       * 
* * string certificate_id = 8; * @return This builder for chaining. */ public Builder clearCertificateId() { certificateId_ = getDefaultInstance().getCertificateId(); onChanged(); return this; } /** *
       * ID of the TLS certificate in Certificate Manager.
       * To get information about the certificate from Certificate Manager, make a
       * [yandex.cloud.certificatemanager.v1.CertificateService.Get] request.
       * 
* * string certificate_id = 8; * @param value The bytes for certificateId to set. * @return This builder for chaining. */ public Builder setCertificateIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); certificateId_ = 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.storage.v1.HTTPSConfig) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.HTTPSConfig) private static final yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.HTTPSConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HTTPSConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HTTPSConfig(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.storage.v1.BucketOuterClass.HTTPSConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObjectLockOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.ObjectLock) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus status = 2; * @return The status. */ yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus getStatus(); /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; * @return Whether the defaultRetention field is set. */ boolean hasDefaultRetention(); /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; * @return The defaultRetention. */ yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention getDefaultRetention(); /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; */ yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetentionOrBuilder getDefaultRetentionOrBuilder(); } /** *
   * A resource for Object Lock configuration of a bucket.
   * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
   * 
* * Protobuf type {@code yandex.cloud.storage.v1.ObjectLock} */ public static final class ObjectLock extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.ObjectLock) ObjectLockOrBuilder { private static final long serialVersionUID = 0L; // Use ObjectLock.newBuilder() to construct. private ObjectLock(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObjectLock() { status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ObjectLock(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ObjectLock( 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 16: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 26: { yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Builder subBuilder = null; if (defaultRetention_ != null) { subBuilder = defaultRetention_.toBuilder(); } defaultRetention_ = input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(defaultRetention_); defaultRetention_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.class, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.Builder.class); } /** *
     * Activity status of the object lock settings on the bucket
     * 
* * Protobuf enum {@code yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus} */ public enum ObjectLockStatus implements com.google.protobuf.ProtocolMessageEnum { /** * OBJECT_LOCK_STATUS_UNSPECIFIED = 0; */ OBJECT_LOCK_STATUS_UNSPECIFIED(0), /** * OBJECT_LOCK_STATUS_DISABLED = 1; */ OBJECT_LOCK_STATUS_DISABLED(1), /** * OBJECT_LOCK_STATUS_ENABLED = 2; */ OBJECT_LOCK_STATUS_ENABLED(2), UNRECOGNIZED(-1), ; /** * OBJECT_LOCK_STATUS_UNSPECIFIED = 0; */ public static final int OBJECT_LOCK_STATUS_UNSPECIFIED_VALUE = 0; /** * OBJECT_LOCK_STATUS_DISABLED = 1; */ public static final int OBJECT_LOCK_STATUS_DISABLED_VALUE = 1; /** * OBJECT_LOCK_STATUS_ENABLED = 2; */ public static final int OBJECT_LOCK_STATUS_ENABLED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ObjectLockStatus valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ObjectLockStatus forNumber(int value) { switch (value) { case 0: return OBJECT_LOCK_STATUS_UNSPECIFIED; case 1: return OBJECT_LOCK_STATUS_DISABLED; case 2: return OBJECT_LOCK_STATUS_ENABLED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ObjectLockStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ObjectLockStatus findValueByNumber(int number) { return ObjectLockStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.getDescriptor().getEnumTypes().get(0); } private static final ObjectLockStatus[] VALUES = values(); public static ObjectLockStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ObjectLockStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus) } public interface DefaultRetentionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.ObjectLock.DefaultRetention) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode mode = 1; * @return The mode. */ yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode getMode(); /** *
       * Number of days for locking
       * 
* * int64 days = 2; * @return Whether the days field is set. */ boolean hasDays(); /** *
       * Number of days for locking
       * 
* * int64 days = 2; * @return The days. */ long getDays(); /** *
       * Number of years for locking
       * 
* * int64 years = 3; * @return Whether the years field is set. */ boolean hasYears(); /** *
       * Number of years for locking
       * 
* * int64 years = 3; * @return The years. */ long getYears(); public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.PeriodCase getPeriodCase(); } /** *
     * Default lock configuration for added objects
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.ObjectLock.DefaultRetention} */ public static final class DefaultRetention extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.ObjectLock.DefaultRetention) DefaultRetentionOrBuilder { private static final long serialVersionUID = 0L; // Use DefaultRetention.newBuilder() to construct. private DefaultRetention(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefaultRetention() { mode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefaultRetention(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefaultRetention( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); mode_ = rawValue; break; } case 16: { period_ = input.readInt64(); periodCase_ = 2; break; } case 24: { period_ = input.readInt64(); periodCase_ = 3; 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.class, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Builder.class); } /** *
       * Lock type
       * 
* * Protobuf enum {@code yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), /** * MODE_GOVERNANCE = 1; */ MODE_GOVERNANCE(1), /** * MODE_COMPLIANCE = 2; */ MODE_COMPLIANCE(2), UNRECOGNIZED(-1), ; /** * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** * MODE_GOVERNANCE = 1; */ public static final int MODE_GOVERNANCE_VALUE = 1; /** * MODE_COMPLIANCE = 2; */ public static final int MODE_COMPLIANCE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Mode forNumber(int value) { switch (value) { case 0: return MODE_UNSPECIFIED; case 1: return MODE_GOVERNANCE; case 2: return MODE_COMPLIANCE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mode findValueByNumber(int number) { return Mode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); public static Mode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Mode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode) } private int periodCase_ = 0; private java.lang.Object period_; public enum PeriodCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DAYS(2), YEARS(3), PERIOD_NOT_SET(0); private final int value; private PeriodCase(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 PeriodCase valueOf(int value) { return forNumber(value); } public static PeriodCase forNumber(int value) { switch (value) { case 2: return DAYS; case 3: return YEARS; case 0: return PERIOD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PeriodCase getPeriodCase() { return PeriodCase.forNumber( periodCase_); } public static final int MODE_FIELD_NUMBER = 1; private int mode_; /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode mode = 1; * @return The mode. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode result = yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode.UNRECOGNIZED : result; } public static final int DAYS_FIELD_NUMBER = 2; /** *
       * Number of days for locking
       * 
* * int64 days = 2; * @return Whether the days field is set. */ @java.lang.Override public boolean hasDays() { return periodCase_ == 2; } /** *
       * Number of days for locking
       * 
* * int64 days = 2; * @return The days. */ @java.lang.Override public long getDays() { if (periodCase_ == 2) { return (java.lang.Long) period_; } return 0L; } public static final int YEARS_FIELD_NUMBER = 3; /** *
       * Number of years for locking
       * 
* * int64 years = 3; * @return Whether the years field is set. */ @java.lang.Override public boolean hasYears() { return periodCase_ == 3; } /** *
       * Number of years for locking
       * 
* * int64 years = 3; * @return The years. */ @java.lang.Override public long getYears() { if (periodCase_ == 3) { return (java.lang.Long) period_; } return 0L; } 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 (mode_ != yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } if (periodCase_ == 2) { output.writeInt64( 2, (long)((java.lang.Long) period_)); } if (periodCase_ == 3) { output.writeInt64( 3, (long)((java.lang.Long) period_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (mode_ != yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode.MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, mode_); } if (periodCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 2, (long)((java.lang.Long) period_)); } if (periodCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 3, (long)((java.lang.Long) period_)); } 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.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention other = (yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention) obj; if (mode_ != other.mode_) return false; if (!getPeriodCase().equals(other.getPeriodCase())) return false; switch (periodCase_) { case 2: if (getDays() != other.getDays()) return false; break; case 3: if (getYears() != other.getYears()) 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(); hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; switch (periodCase_) { case 2: hash = (37 * hash) + DAYS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDays()); break; case 3: hash = (37 * hash) + YEARS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getYears()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention 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.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention 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.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention 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.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention 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.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention 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.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention 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; } /** *
       * Default lock configuration for added objects
       * 
* * Protobuf type {@code yandex.cloud.storage.v1.ObjectLock.DefaultRetention} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.ObjectLock.DefaultRetention) yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetentionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.class, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.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(); mode_ = 0; periodCase_ = 0; period_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention build() { yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention result = new yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention(this); result.mode_ = mode_; if (periodCase_ == 2) { result.period_ = period_; } if (periodCase_ == 3) { result.period_ = period_; } result.periodCase_ = periodCase_; 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.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.getDefaultInstance()) return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } switch (other.getPeriodCase()) { case DAYS: { setDays(other.getDays()); break; } case YEARS: { setYears(other.getYears()); break; } case PERIOD_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.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int periodCase_ = 0; private java.lang.Object period_; public PeriodCase getPeriodCase() { return PeriodCase.forNumber( periodCase_); } public Builder clearPeriod() { periodCase_ = 0; period_ = null; onChanged(); return this; } private int mode_ = 0; /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode mode = 1; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { mode_ = value; onChanged(); return this; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode mode = 1; * @return The mode. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode result = yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode.UNRECOGNIZED : result; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode mode = 1; * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Mode value) { if (value == null) { throw new NullPointerException(); } mode_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention.Mode mode = 1; * @return This builder for chaining. */ public Builder clearMode() { mode_ = 0; onChanged(); return this; } /** *
         * Number of days for locking
         * 
* * int64 days = 2; * @return Whether the days field is set. */ public boolean hasDays() { return periodCase_ == 2; } /** *
         * Number of days for locking
         * 
* * int64 days = 2; * @return The days. */ public long getDays() { if (periodCase_ == 2) { return (java.lang.Long) period_; } return 0L; } /** *
         * Number of days for locking
         * 
* * int64 days = 2; * @param value The days to set. * @return This builder for chaining. */ public Builder setDays(long value) { periodCase_ = 2; period_ = value; onChanged(); return this; } /** *
         * Number of days for locking
         * 
* * int64 days = 2; * @return This builder for chaining. */ public Builder clearDays() { if (periodCase_ == 2) { periodCase_ = 0; period_ = null; onChanged(); } return this; } /** *
         * Number of years for locking
         * 
* * int64 years = 3; * @return Whether the years field is set. */ public boolean hasYears() { return periodCase_ == 3; } /** *
         * Number of years for locking
         * 
* * int64 years = 3; * @return The years. */ public long getYears() { if (periodCase_ == 3) { return (java.lang.Long) period_; } return 0L; } /** *
         * Number of years for locking
         * 
* * int64 years = 3; * @param value The years to set. * @return This builder for chaining. */ public Builder setYears(long value) { periodCase_ = 3; period_ = value; onChanged(); return this; } /** *
         * Number of years for locking
         * 
* * int64 years = 3; * @return This builder for chaining. */ public Builder clearYears() { if (periodCase_ == 3) { periodCase_ = 0; period_ = null; 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.storage.v1.ObjectLock.DefaultRetention) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.ObjectLock.DefaultRetention) private static final yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DefaultRetention parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefaultRetention(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.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * .yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus status = 2; * @return The status. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus result = yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus.valueOf(status_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus.UNRECOGNIZED : result; } public static final int DEFAULT_RETENTION_FIELD_NUMBER = 3; private yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention defaultRetention_; /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; * @return Whether the defaultRetention field is set. */ @java.lang.Override public boolean hasDefaultRetention() { return defaultRetention_ != null; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; * @return The defaultRetention. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention getDefaultRetention() { return defaultRetention_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.getDefaultInstance() : defaultRetention_; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetentionOrBuilder getDefaultRetentionOrBuilder() { return getDefaultRetention(); } 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 (status_ != yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus.OBJECT_LOCK_STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } if (defaultRetention_ != null) { output.writeMessage(3, getDefaultRetention()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus.OBJECT_LOCK_STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } if (defaultRetention_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDefaultRetention()); } 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.storage.v1.BucketOuterClass.ObjectLock)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock other = (yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock) obj; if (status_ != other.status_) return false; if (hasDefaultRetention() != other.hasDefaultRetention()) return false; if (hasDefaultRetention()) { if (!getDefaultRetention() .equals(other.getDefaultRetention())) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasDefaultRetention()) { hash = (37 * hash) + DEFAULT_RETENTION_FIELD_NUMBER; hash = (53 * hash) + getDefaultRetention().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock 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.storage.v1.BucketOuterClass.ObjectLock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock 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.storage.v1.BucketOuterClass.ObjectLock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock 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.storage.v1.BucketOuterClass.ObjectLock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock 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.storage.v1.BucketOuterClass.ObjectLock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock 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.storage.v1.BucketOuterClass.ObjectLock 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; } /** *
     * A resource for Object Lock configuration of a bucket.
     * For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
     * 
* * Protobuf type {@code yandex.cloud.storage.v1.ObjectLock} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.ObjectLock) yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.class, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.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(); status_ = 0; if (defaultRetentionBuilder_ == null) { defaultRetention_ = null; } else { defaultRetention_ = null; defaultRetentionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_ObjectLock_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock build() { yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock result = new yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock(this); result.status_ = status_; if (defaultRetentionBuilder_ == null) { result.defaultRetention_ = defaultRetention_; } else { result.defaultRetention_ = defaultRetentionBuilder_.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.storage.v1.BucketOuterClass.ObjectLock) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasDefaultRetention()) { mergeDefaultRetention(other.getDefaultRetention()); } 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.storage.v1.BucketOuterClass.ObjectLock parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int status_ = 0; /** * .yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus status = 2; * @return The status. */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus result = yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus.valueOf(status_); return result == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus.UNRECOGNIZED : result; } /** * .yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.ObjectLockStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.storage.v1.ObjectLock.ObjectLockStatus status = 2; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention defaultRetention_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetentionOrBuilder> defaultRetentionBuilder_; /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; * @return Whether the defaultRetention field is set. */ public boolean hasDefaultRetention() { return defaultRetentionBuilder_ != null || defaultRetention_ != null; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; * @return The defaultRetention. */ public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention getDefaultRetention() { if (defaultRetentionBuilder_ == null) { return defaultRetention_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.getDefaultInstance() : defaultRetention_; } else { return defaultRetentionBuilder_.getMessage(); } } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; */ public Builder setDefaultRetention(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention value) { if (defaultRetentionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } defaultRetention_ = value; onChanged(); } else { defaultRetentionBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; */ public Builder setDefaultRetention( yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Builder builderForValue) { if (defaultRetentionBuilder_ == null) { defaultRetention_ = builderForValue.build(); onChanged(); } else { defaultRetentionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; */ public Builder mergeDefaultRetention(yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention value) { if (defaultRetentionBuilder_ == null) { if (defaultRetention_ != null) { defaultRetention_ = yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.newBuilder(defaultRetention_).mergeFrom(value).buildPartial(); } else { defaultRetention_ = value; } onChanged(); } else { defaultRetentionBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; */ public Builder clearDefaultRetention() { if (defaultRetentionBuilder_ == null) { defaultRetention_ = null; onChanged(); } else { defaultRetention_ = null; defaultRetentionBuilder_ = null; } return this; } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Builder getDefaultRetentionBuilder() { onChanged(); return getDefaultRetentionFieldBuilder().getBuilder(); } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; */ public yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetentionOrBuilder getDefaultRetentionOrBuilder() { if (defaultRetentionBuilder_ != null) { return defaultRetentionBuilder_.getMessageOrBuilder(); } else { return defaultRetention_ == null ? yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.getDefaultInstance() : defaultRetention_; } } /** * .yandex.cloud.storage.v1.ObjectLock.DefaultRetention default_retention = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetentionOrBuilder> getDefaultRetentionFieldBuilder() { if (defaultRetentionBuilder_ == null) { defaultRetentionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetention.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock.DefaultRetentionOrBuilder>( getDefaultRetention(), getParentForChildren(), isClean()); defaultRetention_ = null; } return defaultRetentionBuilder_; } @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.storage.v1.ObjectLock) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.ObjectLock) private static final yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.ObjectLock getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObjectLock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ObjectLock(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.storage.v1.BucketOuterClass.ObjectLock getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.Encryption) com.google.protobuf.MessageOrBuilder { /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ java.util.List getRulesList(); /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule getRules(int index); /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ int getRulesCount(); /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ java.util.List getRulesOrBuilderList(); /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRuleOrBuilder getRulesOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.storage.v1.Encryption} */ public static final class Encryption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.Encryption) EncryptionOrBuilder { private static final long serialVersionUID = 0L; // Use Encryption.newBuilder() to construct. private Encryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Encryption() { rules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Encryption(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Encryption( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rules_.add( input.readMessage(yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.class, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.Builder.class); } public interface EncryptionRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.storage.v1.Encryption.EncryptionRule) com.google.protobuf.MessageOrBuilder { /** * string kms_master_key_id = 1; * @return The kmsMasterKeyId. */ java.lang.String getKmsMasterKeyId(); /** * string kms_master_key_id = 1; * @return The bytes for kmsMasterKeyId. */ com.google.protobuf.ByteString getKmsMasterKeyIdBytes(); /** * string sse_algorithm = 2; * @return The sseAlgorithm. */ java.lang.String getSseAlgorithm(); /** * string sse_algorithm = 2; * @return The bytes for sseAlgorithm. */ com.google.protobuf.ByteString getSseAlgorithmBytes(); } /** * Protobuf type {@code yandex.cloud.storage.v1.Encryption.EncryptionRule} */ public static final class EncryptionRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.storage.v1.Encryption.EncryptionRule) EncryptionRuleOrBuilder { private static final long serialVersionUID = 0L; // Use EncryptionRule.newBuilder() to construct. private EncryptionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EncryptionRule() { kmsMasterKeyId_ = ""; sseAlgorithm_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EncryptionRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EncryptionRule( 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(); kmsMasterKeyId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); sseAlgorithm_ = 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.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.class, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder.class); } public static final int KMS_MASTER_KEY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object kmsMasterKeyId_; /** * string kms_master_key_id = 1; * @return The kmsMasterKeyId. */ @java.lang.Override public java.lang.String getKmsMasterKeyId() { java.lang.Object ref = kmsMasterKeyId_; 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(); kmsMasterKeyId_ = s; return s; } } /** * string kms_master_key_id = 1; * @return The bytes for kmsMasterKeyId. */ @java.lang.Override public com.google.protobuf.ByteString getKmsMasterKeyIdBytes() { java.lang.Object ref = kmsMasterKeyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kmsMasterKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SSE_ALGORITHM_FIELD_NUMBER = 2; private volatile java.lang.Object sseAlgorithm_; /** * string sse_algorithm = 2; * @return The sseAlgorithm. */ @java.lang.Override public java.lang.String getSseAlgorithm() { java.lang.Object ref = sseAlgorithm_; 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(); sseAlgorithm_ = s; return s; } } /** * string sse_algorithm = 2; * @return The bytes for sseAlgorithm. */ @java.lang.Override public com.google.protobuf.ByteString getSseAlgorithmBytes() { java.lang.Object ref = sseAlgorithm_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sseAlgorithm_ = 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(kmsMasterKeyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsMasterKeyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sseAlgorithm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sseAlgorithm_); } 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(kmsMasterKeyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kmsMasterKeyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sseAlgorithm_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sseAlgorithm_); } 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.storage.v1.BucketOuterClass.Encryption.EncryptionRule)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule other = (yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule) obj; if (!getKmsMasterKeyId() .equals(other.getKmsMasterKeyId())) return false; if (!getSseAlgorithm() .equals(other.getSseAlgorithm())) 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) + KMS_MASTER_KEY_ID_FIELD_NUMBER; hash = (53 * hash) + getKmsMasterKeyId().hashCode(); hash = (37 * hash) + SSE_ALGORITHM_FIELD_NUMBER; hash = (53 * hash) + getSseAlgorithm().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule 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.storage.v1.BucketOuterClass.Encryption.EncryptionRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule 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.storage.v1.BucketOuterClass.Encryption.EncryptionRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule 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.storage.v1.BucketOuterClass.Encryption.EncryptionRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule 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.storage.v1.BucketOuterClass.Encryption.EncryptionRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule 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.storage.v1.BucketOuterClass.Encryption.EncryptionRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.Encryption.EncryptionRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.Encryption.EncryptionRule) yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.class, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.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(); kmsMasterKeyId_ = ""; sseAlgorithm_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule build() { yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule result = new yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule(this); result.kmsMasterKeyId_ = kmsMasterKeyId_; result.sseAlgorithm_ = sseAlgorithm_; 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.storage.v1.BucketOuterClass.Encryption.EncryptionRule) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.getDefaultInstance()) return this; if (!other.getKmsMasterKeyId().isEmpty()) { kmsMasterKeyId_ = other.kmsMasterKeyId_; onChanged(); } if (!other.getSseAlgorithm().isEmpty()) { sseAlgorithm_ = other.sseAlgorithm_; 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.storage.v1.BucketOuterClass.Encryption.EncryptionRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object kmsMasterKeyId_ = ""; /** * string kms_master_key_id = 1; * @return The kmsMasterKeyId. */ public java.lang.String getKmsMasterKeyId() { java.lang.Object ref = kmsMasterKeyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsMasterKeyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string kms_master_key_id = 1; * @return The bytes for kmsMasterKeyId. */ public com.google.protobuf.ByteString getKmsMasterKeyIdBytes() { java.lang.Object ref = kmsMasterKeyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kmsMasterKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string kms_master_key_id = 1; * @param value The kmsMasterKeyId to set. * @return This builder for chaining. */ public Builder setKmsMasterKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } kmsMasterKeyId_ = value; onChanged(); return this; } /** * string kms_master_key_id = 1; * @return This builder for chaining. */ public Builder clearKmsMasterKeyId() { kmsMasterKeyId_ = getDefaultInstance().getKmsMasterKeyId(); onChanged(); return this; } /** * string kms_master_key_id = 1; * @param value The bytes for kmsMasterKeyId to set. * @return This builder for chaining. */ public Builder setKmsMasterKeyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsMasterKeyId_ = value; onChanged(); return this; } private java.lang.Object sseAlgorithm_ = ""; /** * string sse_algorithm = 2; * @return The sseAlgorithm. */ public java.lang.String getSseAlgorithm() { java.lang.Object ref = sseAlgorithm_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sseAlgorithm_ = s; return s; } else { return (java.lang.String) ref; } } /** * string sse_algorithm = 2; * @return The bytes for sseAlgorithm. */ public com.google.protobuf.ByteString getSseAlgorithmBytes() { java.lang.Object ref = sseAlgorithm_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sseAlgorithm_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string sse_algorithm = 2; * @param value The sseAlgorithm to set. * @return This builder for chaining. */ public Builder setSseAlgorithm( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sseAlgorithm_ = value; onChanged(); return this; } /** * string sse_algorithm = 2; * @return This builder for chaining. */ public Builder clearSseAlgorithm() { sseAlgorithm_ = getDefaultInstance().getSseAlgorithm(); onChanged(); return this; } /** * string sse_algorithm = 2; * @param value The bytes for sseAlgorithm to set. * @return This builder for chaining. */ public Builder setSseAlgorithmBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sseAlgorithm_ = 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.storage.v1.Encryption.EncryptionRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.Encryption.EncryptionRule) private static final yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EncryptionRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EncryptionRule(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.storage.v1.BucketOuterClass.Encryption.EncryptionRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RULES_FIELD_NUMBER = 1; private java.util.List rules_; /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ @java.lang.Override public java.util.List getRulesList() { return rules_; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ @java.lang.Override public java.util.List getRulesOrBuilderList() { return rules_; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule getRules(int index) { return rules_.get(index); } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRuleOrBuilder getRulesOrBuilder( int index) { return rules_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rules_.size(); i++) { output.writeMessage(1, rules_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, rules_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.storage.v1.BucketOuterClass.Encryption)) { return super.equals(obj); } yandex.cloud.api.storage.v1.BucketOuterClass.Encryption other = (yandex.cloud.api.storage.v1.BucketOuterClass.Encryption) obj; if (!getRulesList() .equals(other.getRulesList())) 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(); if (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption 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.storage.v1.BucketOuterClass.Encryption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption 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.storage.v1.BucketOuterClass.Encryption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption 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.storage.v1.BucketOuterClass.Encryption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption 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.storage.v1.BucketOuterClass.Encryption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption 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.storage.v1.BucketOuterClass.Encryption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.storage.v1.Encryption} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.storage.v1.Encryption) yandex.cloud.api.storage.v1.BucketOuterClass.EncryptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.class, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.Builder.class); } // Construct using yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rulesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.internal_static_yandex_cloud_storage_v1_Encryption_descriptor; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption getDefaultInstanceForType() { return yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption build() { yandex.cloud.api.storage.v1.BucketOuterClass.Encryption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption buildPartial() { yandex.cloud.api.storage.v1.BucketOuterClass.Encryption result = new yandex.cloud.api.storage.v1.BucketOuterClass.Encryption(this); int from_bitField0_ = bitField0_; if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000001); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.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.storage.v1.BucketOuterClass.Encryption) { return mergeFrom((yandex.cloud.api.storage.v1.BucketOuterClass.Encryption)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.storage.v1.BucketOuterClass.Encryption other) { if (other == yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.getDefaultInstance()) return this; if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); rulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } 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.storage.v1.BucketOuterClass.Encryption parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.storage.v1.BucketOuterClass.Encryption) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRuleOrBuilder> rulesBuilder_; /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public Builder setRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public Builder setRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public Builder addRules(yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public Builder addRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public Builder addRules( yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public Builder addRules( int index, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRuleOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public java.util.List getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.getDefaultInstance()); } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.getDefaultInstance()); } /** * repeated .yandex.cloud.storage.v1.Encryption.EncryptionRule rules = 1; */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRule.Builder, yandex.cloud.api.storage.v1.BucketOuterClass.Encryption.EncryptionRuleOrBuilder>( rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } @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.storage.v1.Encryption) } // @@protoc_insertion_point(class_scope:yandex.cloud.storage.v1.Encryption) private static final yandex.cloud.api.storage.v1.BucketOuterClass.Encryption DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.storage.v1.BucketOuterClass.Encryption(); } public static yandex.cloud.api.storage.v1.BucketOuterClass.Encryption getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Encryption parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Encryption(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.storage.v1.BucketOuterClass.Encryption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_Bucket_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_Bucket_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_Tag_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_Tag_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_ACL_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_ACL_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_ACL_Grant_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_ACL_Grant_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_CorsRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_CorsRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_WebsiteSettings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_LifecycleRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_Counters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_Counters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_SizeByClass_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_SizeByClass_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_CountersByClass_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_CountersByClass_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_BucketStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_BucketStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_HTTPSConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_HTTPSConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_ObjectLock_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_ObjectLock_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_Encryption_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_Encryption_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_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/storage/v1/bucket.proto\022\027" + "yandex.cloud.storage.v1\032\034google/protobuf" + "/struct.proto\032\037google/protobuf/timestamp" + ".proto\032\036google/protobuf/wrappers.proto\032\035" + "yandex/cloud/validation.proto\"\307\005\n\006Bucket" + "\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\021\n\tfolder_id\030" + "\003 \001(\t\022M\n\026anonymous_access_flags\030\004 \001(\0132-." + "yandex.cloud.storage.v1.AnonymousAccessF" + "lags\022\035\n\025default_storage_class\030\005 \001(\t\0227\n\nv" + "ersioning\030\006 \001(\0162#.yandex.cloud.storage.v" + "1.Versioning\022\020\n\010max_size\030\007 \001(\003\022\'\n\006policy" + "\030\010 \001(\0132\027.google.protobuf.Struct\022)\n\003acl\030\t" + " \001(\0132\034.yandex.cloud.storage.v1.ACL\022.\n\ncr" + "eated_at\030\n \001(\0132\032.google.protobuf.Timesta" + "mp\022/\n\004cors\030\013 \003(\0132!.yandex.cloud.storage." + "v1.CorsRule\022B\n\020website_settings\030\014 \001(\0132(." + "yandex.cloud.storage.v1.WebsiteSettings\022" + "?\n\017lifecycle_rules\030\r \003(\0132&.yandex.cloud." + "storage.v1.LifecycleRule\022*\n\004tags\030\016 \003(\0132\034" + ".yandex.cloud.storage.v1.Tag\0228\n\013object_l" + "ock\030\017 \001(\0132#.yandex.cloud.storage.v1.Obje" + "ctLock\0227\n\nencryption\030\020 \001(\0132#.yandex.clou" + "d.storage.v1.Encryption\"!\n\003Tag\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t\"\222\004\n\003ACL\0222\n\006grants\030\001 \003" + "(\0132\".yandex.cloud.storage.v1.ACL.Grant\032\326" + "\003\n\005Grant\022G\n\npermission\030\001 \001(\0162-.yandex.cl" + "oud.storage.v1.ACL.Grant.PermissionB\004\350\3071" + "\001\022F\n\ngrant_type\030\002 \001(\0162,.yandex.cloud.sto" + "rage.v1.ACL.Grant.GrantTypeB\004\350\3071\001\022\022\n\ngra" + "ntee_id\030\003 \001(\t\"\243\001\n\nPermission\022\032\n\026PERMISSI" + "ON_UNSPECIFIED\020\000\022\033\n\027PERMISSION_FULL_CONT" + "ROL\020\001\022\024\n\020PERMISSION_WRITE\020\002\022\030\n\024PERMISSIO" + "N_WRITE_ACP\020\003\022\023\n\017PERMISSION_READ\020\004\022\027\n\023PE" + "RMISSION_READ_ACP\020\005\"\201\001\n\tGrantType\022\032\n\026GRA" + "NT_TYPE_UNSPECIFIED\020\000\022\026\n\022GRANT_TYPE_ACCO" + "UNT\020\001\022&\n\"GRANT_TYPE_ALL_AUTHENTICATED_US" + "ERS\020\002\022\030\n\024GRANT_TYPE_ALL_USERS\020\003\"\233\001\n\024Anon" + "ymousAccessFlags\022(\n\004read\030\001 \001(\0132\032.google." + "protobuf.BoolValue\022(\n\004list\030\002 \001(\0132\032.googl" + "e.protobuf.BoolValue\022/\n\013config_read\030\003 \001(" + "\0132\032.google.protobuf.BoolValue\"\344\002\n\010CorsRu" + "le\022\n\n\002id\030\001 \001(\t\022M\n\017allowed_methods\030\002 \003(\0162" + "(.yandex.cloud.storage.v1.CorsRule.Metho" + "dB\n\202\3101\002>0\220\3101\001\022\027\n\017allowed_headers\030\003 \003(\t\022\037" + "\n\017allowed_origins\030\004 \003(\tB\006\202\3101\002>0\022\026\n\016expos" + "e_headers\030\005 \003(\t\0224\n\017max_age_seconds\030\006 \001(\013" + "2\033.google.protobuf.Int64Value\"u\n\006Method\022" + "\026\n\022METHOD_UNSPECIFIED\020\000\022\016\n\nMETHOD_GET\020\001\022" + "\017\n\013METHOD_HEAD\020\002\022\017\n\013METHOD_POST\020\003\022\016\n\nMET" + "HOD_PUT\020\004\022\021\n\rMETHOD_DELETE\020\005\"\274\006\n\017Website" + "Settings\022\r\n\005index\030\001 \001(\t\022\r\n\005error\030\002 \001(\t\022N" + "\n\025redirect_all_requests\030\003 \001(\0132/.yandex.c" + "loud.storage.v1.WebsiteSettings.Scheme\022K" + "\n\rrouting_rules\030\004 \003(\01324.yandex.cloud.sto" + "rage.v1.WebsiteSettings.RoutingRule\032_\n\006S" + "cheme\022C\n\010protocol\030\001 \001(\01621.yandex.cloud.s" + "torage.v1.WebsiteSettings.Protocol\022\020\n\010ho" + "stname\030\002 \001(\t\032O\n\tCondition\022\'\n\037http_error_" + "code_returned_equals\030\001 \001(\t\022\031\n\021key_prefix" + "_equals\030\002 \001(\t\032\322\001\n\010Redirect\022\020\n\010hostname\030\001" + " \001(\t\0224\n\022http_redirect_code\030\002 \001(\tB\030\362\3071\0243(" + "0[1-9]|[1-9][0-9])\022C\n\010protocol\030\003 \001(\01621.y" + "andex.cloud.storage.v1.WebsiteSettings.P" + "rotocol\022\037\n\027replace_key_prefix_with\030\004 \001(\t" + "\022\030\n\020replace_key_with\030\005 \001(\t\032\231\001\n\013RoutingRu" + "le\022E\n\tcondition\030\001 \001(\01322.yandex.cloud.sto" + "rage.v1.WebsiteSettings.Condition\022C\n\010red" + "irect\030\002 \001(\01321.yandex.cloud.storage.v1.We" + "bsiteSettings.Redirect\"K\n\010Protocol\022\030\n\024PR" + "OTOCOL_UNSPECIFIED\020\000\022\021\n\rPROTOCOL_HTTP\020\001\022" + "\022\n\016PROTOCOL_HTTPS\020\002\"\364\t\n\rLifecycleRule\022(\n" + "\002id\030\001 \001(\0132\034.google.protobuf.StringValue\022" + "\017\n\007enabled\030\002 \001(\010\022A\n\006filter\030\003 \001(\01321.yande" + "x.cloud.storage.v1.LifecycleRule.RuleFil" + "ter\022E\n\nexpiration\030\004 \001(\01321.yandex.cloud.s" + "torage.v1.LifecycleRule.Expiration\022F\n\013tr" + "ansitions\030\005 \003(\01321.yandex.cloud.storage.v" + "1.LifecycleRule.Transition\022[\n!abort_inco" + "mplete_multipart_upload\030\006 \001(\01320.yandex.c" + "loud.storage.v1.LifecycleRule.AfterDays\022" + "Z\n\025noncurrent_expiration\030\007 \001(\0132;.yandex." + "cloud.storage.v1.LifecycleRule.Noncurren" + "tExpiration\022[\n\026noncurrent_transitions\030\010 " + "\003(\0132;.yandex.cloud.storage.v1.LifecycleR" + "ule.NoncurrentTransition\032G\n\tAfterDays\022:\n" + "\025days_after_expiration\030\001 \001(\0132\033.google.pr" + "otobuf.Int64Value\032L\n\024NoncurrentExpiratio" + "n\0224\n\017noncurrent_days\030\001 \001(\0132\033.google.prot" + "obuf.Int64Value\032i\n\024NoncurrentTransition\022" + "4\n\017noncurrent_days\030\001 \001(\0132\033.google.protob" + "uf.Int64Value\022\033\n\rstorage_class\030\002 \001(\tB\004\350\307" + "1\001\032~\n\nTransition\022(\n\004date\030\001 \001(\0132\032.google." + "protobuf.Timestamp\022)\n\004days\030\002 \001(\0132\033.googl" + "e.protobuf.Int64Value\022\033\n\rstorage_class\030\004" + " \001(\tB\004\350\3071\001\032\243\001\n\nExpiration\022(\n\004date\030\001 \001(\0132" + "\032.google.protobuf.Timestamp\022)\n\004days\030\002 \001(" + "\0132\033.google.protobuf.Int64Value\022@\n\034expire" + "d_object_delete_marker\030\003 \001(\0132\032.google.pr" + "otobuf.BoolValue\032\227\001\n\nRuleFilter\022\016\n\006prefi" + "x\030\001 \001(\t\022=\n\030object_size_greater_than\030\002 \001(" + "\0132\033.google.protobuf.Int64Value\022:\n\025object" + "_size_less_than\030\003 \001(\0132\033.google.protobuf." + "Int64Value\"\335\001\n\010Counters\022\032\n\022simple_object" + "_size\030\001 \001(\003\022\033\n\023simple_object_count\030\002 \001(\003" + "\022\032\n\022objects_parts_size\030\003 \001(\003\022\033\n\023objects_" + "parts_count\030\004 \001(\003\022\036\n\026multipart_objects_s" + "ize\030\005 \001(\003\022\037\n\027multipart_objects_count\030\006 \001" + "(\003\022\036\n\026active_multipart_count\030\007 \001(\003\"]\n\023Op" + "tionalSizeByClass\022\025\n\rstorage_class\030\001 \001(\t" + "\022/\n\nclass_size\030\002 \001(\0132\033.google.protobuf.I" + "nt64Value\"8\n\013SizeByClass\022\025\n\rstorage_clas" + "s\030\001 \001(\t\022\022\n\nclass_size\030\002 \001(\003\"]\n\017CountersB" + "yClass\022\025\n\rstorage_class\030\001 \001(\t\0223\n\010counter" + "s\030\002 \001(\0132!.yandex.cloud.storage.v1.Counte" + "rs\"\252\004\n\013BucketStats\022\014\n\004name\030\001 \001(\t\022-\n\010max_" + "size\030\002 \001(\0132\033.google.protobuf.Int64Value\022" + "\021\n\tused_size\030\003 \001(\003\022M\n\027storage_class_max_" + "sizes\030\004 \003(\0132,.yandex.cloud.storage.v1.Op" + "tionalSizeByClass\022F\n\030storage_class_used_" + "sizes\030\005 \003(\0132$.yandex.cloud.storage.v1.Si" + "zeByClass\022H\n\026storage_class_counters\030\006 \003(" + "\0132(.yandex.cloud.storage.v1.CountersByCl" + "ass\022;\n\025default_storage_class\030\007 \001(\0132\034.goo" + "gle.protobuf.StringValue\022M\n\026anonymous_ac" + "cess_flags\030\010 \001(\0132-.yandex.cloud.storage." + "v1.AnonymousAccessFlags\022.\n\ncreated_at\030\t " + "\001(\0132\032.google.protobuf.Timestamp\022.\n\nupdat" + "ed_at\030\n \001(\0132\032.google.protobuf.Timestamp\"" + "\301\003\n\013HTTPSConfig\022\014\n\004name\030\001 \001(\t\022D\n\013source_" + "type\030\002 \001(\0162/.yandex.cloud.storage.v1.HTT" + "PSConfig.SourceType\022,\n\006issuer\030\003 \001(\0132\034.go" + "ogle.protobuf.StringValue\022-\n\007subject\030\004 \001" + "(\0132\034.google.protobuf.StringValue\022\021\n\tdns_" + "names\030\005 \003(\t\022.\n\nnot_before\030\006 \001(\0132\032.google" + ".protobuf.Timestamp\022-\n\tnot_after\030\007 \001(\0132\032" + ".google.protobuf.Timestamp\022\026\n\016certificat" + "e_id\030\010 \001(\t\"w\n\nSourceType\022\033\n\027SOURCE_TYPE_" + "UNSPECIFIED\020\000\022\034\n\030SOURCE_TYPE_SELF_MANAGE" + "D\020\001\022.\n*SOURCE_TYPE_MANAGED_BY_CERTIFICAT" + "E_MANAGER\020\002\"\363\003\n\nObjectLock\022D\n\006status\030\002 \001" + "(\01624.yandex.cloud.storage.v1.ObjectLock." + "ObjectLockStatus\022O\n\021default_retention\030\003 " + "\001(\01324.yandex.cloud.storage.v1.ObjectLock" + ".DefaultRetention\032\324\001\n\020DefaultRetention\022G" + "\n\004mode\030\001 \001(\01629.yandex.cloud.storage.v1.O" + "bjectLock.DefaultRetention.Mode\022\016\n\004days\030" + "\002 \001(\003H\000\022\017\n\005years\030\003 \001(\003H\000\"F\n\004Mode\022\024\n\020MODE" + "_UNSPECIFIED\020\000\022\023\n\017MODE_GOVERNANCE\020\001\022\023\n\017M" + "ODE_COMPLIANCE\020\002B\016\n\006period\022\004\300\3011\001\"w\n\020Obje" + "ctLockStatus\022\"\n\036OBJECT_LOCK_STATUS_UNSPE" + "CIFIED\020\000\022\037\n\033OBJECT_LOCK_STATUS_DISABLED\020" + "\001\022\036\n\032OBJECT_LOCK_STATUS_ENABLED\020\002\"\223\001\n\nEn" + "cryption\022A\n\005rules\030\001 \003(\01322.yandex.cloud.s" + "torage.v1.Encryption.EncryptionRule\032B\n\016E" + "ncryptionRule\022\031\n\021kms_master_key_id\030\001 \001(\t" + "\022\025\n\rsse_algorithm\030\002 \001(\t*s\n\nVersioning\022\032\n" + "\026VERSIONING_UNSPECIFIED\020\000\022\027\n\023VERSIONING_" + "DISABLED\020\001\022\026\n\022VERSIONING_ENABLED\020\002\022\030\n\024VE" + "RSIONING_SUSPENDED\020\003Bb\n\033yandex.cloud.api" + ".storage.v1ZCgithub.com/yandex-cloud/go-" + "genproto/yandex/cloud/storage/v1;storage" + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_storage_v1_Bucket_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_storage_v1_Bucket_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_Bucket_descriptor, new java.lang.String[] { "Id", "Name", "FolderId", "AnonymousAccessFlags", "DefaultStorageClass", "Versioning", "MaxSize", "Policy", "Acl", "CreatedAt", "Cors", "WebsiteSettings", "LifecycleRules", "Tags", "ObjectLock", "Encryption", }); internal_static_yandex_cloud_storage_v1_Tag_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_storage_v1_Tag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_Tag_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_storage_v1_ACL_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_storage_v1_ACL_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_ACL_descriptor, new java.lang.String[] { "Grants", }); internal_static_yandex_cloud_storage_v1_ACL_Grant_descriptor = internal_static_yandex_cloud_storage_v1_ACL_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_storage_v1_ACL_Grant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_ACL_Grant_descriptor, new java.lang.String[] { "Permission", "GrantType", "GranteeId", }); internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_AnonymousAccessFlags_descriptor, new java.lang.String[] { "Read", "List", "ConfigRead", }); internal_static_yandex_cloud_storage_v1_CorsRule_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_storage_v1_CorsRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_CorsRule_descriptor, new java.lang.String[] { "Id", "AllowedMethods", "AllowedHeaders", "AllowedOrigins", "ExposeHeaders", "MaxAgeSeconds", }); internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_storage_v1_WebsiteSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor, new java.lang.String[] { "Index", "Error", "RedirectAllRequests", "RoutingRules", }); internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_descriptor = internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_WebsiteSettings_Scheme_descriptor, new java.lang.String[] { "Protocol", "Hostname", }); internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_descriptor = internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_WebsiteSettings_Condition_descriptor, new java.lang.String[] { "HttpErrorCodeReturnedEquals", "KeyPrefixEquals", }); internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_descriptor = internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor.getNestedTypes().get(2); internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_WebsiteSettings_Redirect_descriptor, new java.lang.String[] { "Hostname", "HttpRedirectCode", "Protocol", "ReplaceKeyPrefixWith", "ReplaceKeyWith", }); internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_descriptor = internal_static_yandex_cloud_storage_v1_WebsiteSettings_descriptor.getNestedTypes().get(3); internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_WebsiteSettings_RoutingRule_descriptor, new java.lang.String[] { "Condition", "Redirect", }); internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_storage_v1_LifecycleRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor, new java.lang.String[] { "Id", "Enabled", "Filter", "Expiration", "Transitions", "AbortIncompleteMultipartUpload", "NoncurrentExpiration", "NoncurrentTransitions", }); internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_descriptor = internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_LifecycleRule_AfterDays_descriptor, new java.lang.String[] { "DaysAfterExpiration", }); internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_descriptor = internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentExpiration_descriptor, new java.lang.String[] { "NoncurrentDays", }); internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_descriptor = internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor.getNestedTypes().get(2); internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_LifecycleRule_NoncurrentTransition_descriptor, new java.lang.String[] { "NoncurrentDays", "StorageClass", }); internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_descriptor = internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor.getNestedTypes().get(3); internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_LifecycleRule_Transition_descriptor, new java.lang.String[] { "Date", "Days", "StorageClass", }); internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_descriptor = internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor.getNestedTypes().get(4); internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_LifecycleRule_Expiration_descriptor, new java.lang.String[] { "Date", "Days", "ExpiredObjectDeleteMarker", }); internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_descriptor = internal_static_yandex_cloud_storage_v1_LifecycleRule_descriptor.getNestedTypes().get(5); internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_LifecycleRule_RuleFilter_descriptor, new java.lang.String[] { "Prefix", "ObjectSizeGreaterThan", "ObjectSizeLessThan", }); internal_static_yandex_cloud_storage_v1_Counters_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_storage_v1_Counters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_Counters_descriptor, new java.lang.String[] { "SimpleObjectSize", "SimpleObjectCount", "ObjectsPartsSize", "ObjectsPartsCount", "MultipartObjectsSize", "MultipartObjectsCount", "ActiveMultipartCount", }); internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_OptionalSizeByClass_descriptor, new java.lang.String[] { "StorageClass", "ClassSize", }); internal_static_yandex_cloud_storage_v1_SizeByClass_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_storage_v1_SizeByClass_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_SizeByClass_descriptor, new java.lang.String[] { "StorageClass", "ClassSize", }); internal_static_yandex_cloud_storage_v1_CountersByClass_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_yandex_cloud_storage_v1_CountersByClass_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_CountersByClass_descriptor, new java.lang.String[] { "StorageClass", "Counters", }); internal_static_yandex_cloud_storage_v1_BucketStats_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_yandex_cloud_storage_v1_BucketStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_BucketStats_descriptor, new java.lang.String[] { "Name", "MaxSize", "UsedSize", "StorageClassMaxSizes", "StorageClassUsedSizes", "StorageClassCounters", "DefaultStorageClass", "AnonymousAccessFlags", "CreatedAt", "UpdatedAt", }); internal_static_yandex_cloud_storage_v1_HTTPSConfig_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_yandex_cloud_storage_v1_HTTPSConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_HTTPSConfig_descriptor, new java.lang.String[] { "Name", "SourceType", "Issuer", "Subject", "DnsNames", "NotBefore", "NotAfter", "CertificateId", }); internal_static_yandex_cloud_storage_v1_ObjectLock_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_yandex_cloud_storage_v1_ObjectLock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_ObjectLock_descriptor, new java.lang.String[] { "Status", "DefaultRetention", }); internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_descriptor = internal_static_yandex_cloud_storage_v1_ObjectLock_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_ObjectLock_DefaultRetention_descriptor, new java.lang.String[] { "Mode", "Days", "Years", "Period", }); internal_static_yandex_cloud_storage_v1_Encryption_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_yandex_cloud_storage_v1_Encryption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_Encryption_descriptor, new java.lang.String[] { "Rules", }); internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_descriptor = internal_static_yandex_cloud_storage_v1_Encryption_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_storage_v1_Encryption_EncryptionRule_descriptor, new java.lang.String[] { "KmsMasterKeyId", "SseAlgorithm", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.exactlyOne); registry.add(yandex.cloud.api.Validation.pattern); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.size); registry.add(yandex.cloud.api.Validation.unique); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy