From ded654ea6d1f749960fc413d5ae9f2a52dcd1071 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:29:53 -0700 Subject: [PATCH] feat: add file_stripe_level and directory_stripe_level fields to Instance (#7570) PiperOrigin-RevId: 658160286 Source-Link: https://github.com/googleapis/googleapis/commit/24c5ee09178ac7d1387dfa2d6053be2fb93c8dc4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6e269227894fca3210a482385d12cfc1c4d1532f Copy-Tag: eyJwIjoiUGFyYWxsZWxzdG9yZS8uT3dsQm90LnlhbWwiLCJoIjoiNmUyNjkyMjc4OTRmY2EzMjEwYTQ4MjM4NWQxMmNmYzFjNGQxNTMyZiJ9 --- .../metadata/V1Beta/Parallelstore.php | Bin 8104 -> 8590 bytes .../src/V1beta/DirectoryStripeLevel.php | 68 ++++++++++++++ Parallelstore/src/V1beta/FileStripeLevel.php | 68 ++++++++++++++ Parallelstore/src/V1beta/Instance.php | 84 ++++++++++++++++++ 4 files changed, 220 insertions(+) create mode 100644 Parallelstore/src/V1beta/DirectoryStripeLevel.php create mode 100644 Parallelstore/src/V1beta/FileStripeLevel.php diff --git a/Parallelstore/metadata/V1Beta/Parallelstore.php b/Parallelstore/metadata/V1Beta/Parallelstore.php index 88d3ba141fa4b1bc7b6308603ec05b690fc4eca4..bf2fe0612c45f0efe0acb203ccd9637202c68e75 100644 GIT binary patch delta 461 zcmZ2s-{-vHKQq%ltIdooL5xh3IW~u~#xuzZ1#trGXH%7Qfhj=O zzIh9~KYzVe7b6!xn(0D{T(WMSKCbb>Awix2uJJyuVXi*$p?<*uuFjrro~|we3__Az zqL@m2J^ch2h2*%TFr}OveH{Iqfm)eRwARCo_jQaAVAfj9$R&c!#X@RaN-my3uFfI; kL6P{}1+*N8I*8+xx#W@MO_4l^{8C~m2LREX3%>vW diff --git a/Parallelstore/src/V1beta/DirectoryStripeLevel.php b/Parallelstore/src/V1beta/DirectoryStripeLevel.php new file mode 100644 index 000000000000..aa9b9b5ab8f6 --- /dev/null +++ b/Parallelstore/src/V1beta/DirectoryStripeLevel.php @@ -0,0 +1,68 @@ +google.cloud.parallelstore.v1beta.DirectoryStripeLevel + */ +class DirectoryStripeLevel +{ + /** + * Default directory striping + * + * Generated from protobuf enum DIRECTORY_STRIPE_LEVEL_UNSPECIFIED = 0; + */ + const DIRECTORY_STRIPE_LEVEL_UNSPECIFIED = 0; + /** + * Minimum directory striping + * + * Generated from protobuf enum DIRECTORY_STRIPE_LEVEL_MIN = 1; + */ + const DIRECTORY_STRIPE_LEVEL_MIN = 1; + /** + * Medium directory striping + * + * Generated from protobuf enum DIRECTORY_STRIPE_LEVEL_BALANCED = 2; + */ + const DIRECTORY_STRIPE_LEVEL_BALANCED = 2; + /** + * Maximum directory striping + * + * Generated from protobuf enum DIRECTORY_STRIPE_LEVEL_MAX = 3; + */ + const DIRECTORY_STRIPE_LEVEL_MAX = 3; + + private static $valueToName = [ + self::DIRECTORY_STRIPE_LEVEL_UNSPECIFIED => 'DIRECTORY_STRIPE_LEVEL_UNSPECIFIED', + self::DIRECTORY_STRIPE_LEVEL_MIN => 'DIRECTORY_STRIPE_LEVEL_MIN', + self::DIRECTORY_STRIPE_LEVEL_BALANCED => 'DIRECTORY_STRIPE_LEVEL_BALANCED', + self::DIRECTORY_STRIPE_LEVEL_MAX => 'DIRECTORY_STRIPE_LEVEL_MAX', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/Parallelstore/src/V1beta/FileStripeLevel.php b/Parallelstore/src/V1beta/FileStripeLevel.php new file mode 100644 index 000000000000..0256998e6532 --- /dev/null +++ b/Parallelstore/src/V1beta/FileStripeLevel.php @@ -0,0 +1,68 @@ +google.cloud.parallelstore.v1beta.FileStripeLevel + */ +class FileStripeLevel +{ + /** + * Default file striping + * + * Generated from protobuf enum FILE_STRIPE_LEVEL_UNSPECIFIED = 0; + */ + const FILE_STRIPE_LEVEL_UNSPECIFIED = 0; + /** + * Minimum file striping + * + * Generated from protobuf enum FILE_STRIPE_LEVEL_MIN = 1; + */ + const FILE_STRIPE_LEVEL_MIN = 1; + /** + * Medium file striping + * + * Generated from protobuf enum FILE_STRIPE_LEVEL_BALANCED = 2; + */ + const FILE_STRIPE_LEVEL_BALANCED = 2; + /** + * Maximum file striping + * + * Generated from protobuf enum FILE_STRIPE_LEVEL_MAX = 3; + */ + const FILE_STRIPE_LEVEL_MAX = 3; + + private static $valueToName = [ + self::FILE_STRIPE_LEVEL_UNSPECIFIED => 'FILE_STRIPE_LEVEL_UNSPECIFIED', + self::FILE_STRIPE_LEVEL_MIN => 'FILE_STRIPE_LEVEL_MIN', + self::FILE_STRIPE_LEVEL_BALANCED => 'FILE_STRIPE_LEVEL_BALANCED', + self::FILE_STRIPE_LEVEL_MAX => 'FILE_STRIPE_LEVEL_MAX', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/Parallelstore/src/V1beta/Instance.php b/Parallelstore/src/V1beta/Instance.php index b0dd62712176..910236b64b20 100644 --- a/Parallelstore/src/V1beta/Instance.php +++ b/Parallelstore/src/V1beta/Instance.php @@ -116,6 +116,22 @@ class Instance extends \Google\Protobuf\Internal\Message * Generated from protobuf field string effective_reserved_ip_range = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { */ protected $effective_reserved_ip_range = ''; + /** + * Optional. Stripe level for files. + * MIN better suited for small size files. + * MAX higher throughput performance for larger files. + * + * Generated from protobuf field .google.cloud.parallelstore.v1beta.FileStripeLevel file_stripe_level = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $file_stripe_level = 0; + /** + * Optional. Stripe level for directories. + * MIN when directory has a small number of files. + * MAX when directory has a large number of files. + * + * Generated from protobuf field .google.cloud.parallelstore.v1beta.DirectoryStripeLevel directory_stripe_level = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $directory_stripe_level = 0; /** * Constructor. @@ -176,6 +192,14 @@ class Instance extends \Google\Protobuf\Internal\Message * "test-default" associated with IP range 10.0.0.0/29. This field is * populated by the service and and contains the value currently used by the * service. + * @type int $file_stripe_level + * Optional. Stripe level for files. + * MIN better suited for small size files. + * MAX higher throughput performance for larger files. + * @type int $directory_stripe_level + * Optional. Stripe level for directories. + * MIN when directory has a small number of files. + * MAX when directory has a large number of files. * } */ public function __construct($data = NULL) { @@ -573,5 +597,65 @@ public function setEffectiveReservedIpRange($var) return $this; } + /** + * Optional. Stripe level for files. + * MIN better suited for small size files. + * MAX higher throughput performance for larger files. + * + * Generated from protobuf field .google.cloud.parallelstore.v1beta.FileStripeLevel file_stripe_level = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getFileStripeLevel() + { + return $this->file_stripe_level; + } + + /** + * Optional. Stripe level for files. + * MIN better suited for small size files. + * MAX higher throughput performance for larger files. + * + * Generated from protobuf field .google.cloud.parallelstore.v1beta.FileStripeLevel file_stripe_level = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setFileStripeLevel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Parallelstore\V1beta\FileStripeLevel::class); + $this->file_stripe_level = $var; + + return $this; + } + + /** + * Optional. Stripe level for directories. + * MIN when directory has a small number of files. + * MAX when directory has a large number of files. + * + * Generated from protobuf field .google.cloud.parallelstore.v1beta.DirectoryStripeLevel directory_stripe_level = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDirectoryStripeLevel() + { + return $this->directory_stripe_level; + } + + /** + * Optional. Stripe level for directories. + * MIN when directory has a small number of files. + * MAX when directory has a large number of files. + * + * Generated from protobuf field .google.cloud.parallelstore.v1beta.DirectoryStripeLevel directory_stripe_level = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDirectoryStripeLevel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Parallelstore\V1beta\DirectoryStripeLevel::class); + $this->directory_stripe_level = $var; + + return $this; + } + }